allow JSON to encode UTF-8

This commit is contained in:
James Powell
2018-10-29 11:17:13 -04:00
parent bcf93e1d9f
commit 4f4f05abdf
8 changed files with 9 additions and 11 deletions

View File

@@ -25,7 +25,7 @@ def load_json(filename):
def save_json(obj, filename):
with open(filename, 'w', encoding='utf-8') as f:
json.dump(obj, f, indent=2)
json.dump(obj, f, indent=2, ensure_ascii=False)
def write_csv(obj, filename):
"""