소스 검색

Fix utf-8 issue in yam2json

Emmanuel Bouthenot 10 년 전
부모
커밋
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: