Make NSIS printing Unicode

This commit is contained in:
Etoh 2023-03-14 19:03:00 +00:00 committed by GitHub
parent 4d4d51f20d
commit f6742e8638
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -566,7 +566,7 @@ class NSISScript(object):
installFiles=installFiles,
totalSize=totalSize,
)
print(contents)
print(contents.encode('utf-8'))
with codecs.open(SETUP_SCRIPT_PATH, "w", "utf-8-sig") as outfile:
outfile.write(contents)