Commit 0eefad29 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

docs: Output JSON files with UTF-8 encoding

Otherwise non-ASCII characters are encoded as \uXXXX.

Part-of: <!474>
parent 2536cf7c
......@@ -122,9 +122,9 @@ if __name__ == "__main__":
modified = dict_recursive_update(cache, plugins)
with open(output_filename, 'w', newline='\n') as f:
json.dump(cache, f, indent=4, sort_keys=True)
with open(output_filename, 'w', newline='\n', encoding='utf8') as f:
json.dump(cache, f, indent=4, sort_keys=True, ensure_ascii=False)
if modified:
with open(cache_filename, 'w', newline='\n') as f:
json.dump(cache, f, indent=4, sort_keys=True)
with open(cache_filename, 'w', newline='\n', encoding='utf8') as f:
json.dump(cache, f, indent=4, sort_keys=True, ensure_ascii=False)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment