Преглед на файлове

Fix utf-8 issue in yam2json

Emmanuel Bouthenot преди 9 години
родител
ревизия
bb0986cb0a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      plugins/client/utils/scripts/yaml2json

+ 1 - 1
plugins/client/utils/scripts/yaml2json

@@ -28,7 +28,7 @@ def main():
     data = {'data': []}
     if os.path.exists(options.datafile):
         try:
-            with open(options.datafile) as f:
+            with open(options.datafile, encoding='utf-8') as f:
                 datayml = yaml.safe_load(f)
                 if datayml is not None:
                     for section in datayml: