From 0a014f432448852384fb87d82b56c3587a84c4dd Mon Sep 17 00:00:00 2001 From: OneNewDev Date: Sun, 29 May 2022 16:35:01 +0200 Subject: [PATCH] allow non-ascii letters in json output --- tagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tagger.py b/tagger.py index 09086be..437d95c 100644 --- a/tagger.py +++ b/tagger.py @@ -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)