Save files as UTF-8
This commit is contained in:
parent
9d576852c2
commit
f3e2abed41
1 changed files with 2 additions and 2 deletions
|
@ -133,10 +133,10 @@ def main(configPath, workPath):
|
||||||
]
|
]
|
||||||
modernlistJson = json.dumps(modernlist, separators=(',',':'))
|
modernlistJson = json.dumps(modernlist, separators=(',',':'))
|
||||||
|
|
||||||
with open(textPath, 'w') as textFile:
|
with open(textPath, mode='w', encoding='utf-8') as textFile:
|
||||||
textFile.write(legacylistText)
|
textFile.write(legacylistText)
|
||||||
|
|
||||||
with open(jsonPath, 'w') as jsonFile:
|
with open(jsonPath, mode='w', encoding='utf-8') as jsonFile:
|
||||||
jsonFile.write(modernlistJson)
|
jsonFile.write(modernlistJson)
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Reference in a new issue