tasks/multimedia-archive: update script to dump JSON with UTF

This commit is contained in:
Gabriel Arazas 2022-08-18 15:18:57 +08:00
parent 84f53a2f50
commit 57a35230e9

View File

@ -97,9 +97,9 @@ if __name__ == "__main__":
output_file = args.output
if output_file:
with open(output_file, mode="w", encoding="UTF-8") as file:
json.dump(data, file, sort_keys=True, indent=2)
json.dump(data, file, sort_keys=True, indent=2, ensure_ascii=False)
else:
print(json.dumps(data, sort_keys=True, indent=2))
print(json.dumps(data, sort_keys=True, indent=2, ensure_ascii=False))
shutil.rmtree(tmpdir)