Explorar o código

Stop saving JSON as ASCII

Thibaud Colas %!s(int64=7) %!d(string=hai) anos
pai
achega
5be4f5a786
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: