From f3e2abed415a50f5c81f70bd5889206338039c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 26 Sep 2021 20:20:39 +0200 Subject: [PATCH] Save files as UTF-8 --- patronupdater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patronupdater.py b/patronupdater.py index a30bac5..104667d 100755 --- a/patronupdater.py +++ b/patronupdater.py @@ -133,10 +133,10 @@ def main(configPath, workPath): ] modernlistJson = json.dumps(modernlist, separators=(',',':')) - with open(textPath, 'w') as textFile: + with open(textPath, mode='w', encoding='utf-8') as textFile: textFile.write(legacylistText) - with open(jsonPath, 'w') as jsonFile: + with open(jsonPath, mode='w', encoding='utf-8') as jsonFile: jsonFile.write(modernlistJson) return 0