Allow unicode characters in `info.json`

Closes #2139
pull/2142/head
pukkandan 3 years ago
parent f02d24d8d2
commit 45d86abeb4
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -305,7 +305,7 @@ def write_json_file(obj, fn):
try: try:
with tf: with tf:
json.dump(obj, tf) json.dump(obj, tf, ensure_ascii=False)
if sys.platform == 'win32': if sys.platform == 'win32':
# Need to remove existing file on Windows, else os.rename raises # Need to remove existing file on Windows, else os.rename raises
# WindowsError or FileExistsError. # WindowsError or FileExistsError.

Loading…
Cancel
Save