Browse Source

Fix utf-8 issue in yam2json

Emmanuel Bouthenot 8 years ago
parent
commit
bb0986cb0a
1 changed files with 1 additions and 1 deletions
  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: