allow non-ascii letters in json output

This commit is contained in:
OneNewDev 2022-05-29 16:35:01 +02:00
parent d5b3811acb
commit 0a014f4324

View file

@ -116,7 +116,7 @@ class CustomJsonEncoder(json.JSONEncoder):
def write_tags(tags):
# Die Ergebnisse in JSON umwandeln.
content = json.dumps(tags, indent=JSON_INDENT, cls=CustomJsonEncoder)
content = json.dumps(tags, indent=JSON_INDENT, cls=CustomJsonEncoder, ensure_ascii=False)
# Das JSON in eine Datei schreiben.
with open(OUTPUT_FILE, 'w') as file:
file.write(content)