瀏覽代碼

Stop saving JSON as ASCII

Thibaud Colas 7 年之前
父節點
當前提交
5be4f5a786
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api.py

+ 1 - 1
api.py

@@ -82,7 +82,7 @@ if __name__ == '__main__':
         json_path = './dist%s' % API_PATH
 
         with codecs.open(json_path, mode='w+', encoding='utf8') as f:
-            readme_payload = json.dumps(parsed_readme, indent=True)
+            readme_payload = json.dumps(parsed_readme, indent=True, ensure_ascii=False)
             print(readme_payload)
             f.write(readme_payload)
     except: