Save files as UTF-8

This commit is contained in:
Petr Mrázek 2021-09-26 20:20:39 +02:00
parent 9d576852c2
commit f3e2abed41

View file

@ -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