Salome HOME
Fix error when reading file on a non-utf-8 locale
[modules/shaper.git] / src / PythonAddons / macros / pipeNetwork / feature.py
index a22632084c9882f73ff1a00cda9974d7b37b652a..e857f7e483141984fecd00bbfcccb7ddf0d875cb 100755 (executable)
@@ -696,7 +696,7 @@ Il est nommé conformément au noeud d'application. Cela n'a qu'un intérêt gra
             while True:
 
                 # B.1. Lecture du fichier
-                with open(filepath) as afile:
+                with open(filepath, encoding='utf-8') as afile:
                     summary = 0
                     method = self.parligne
                     for line in afile: