From f6742e8638865ae952fffd15a6679a4e8b6b36f8 Mon Sep 17 00:00:00 2001 From: Etoh Date: Tue, 14 Mar 2023 19:03:00 +0000 Subject: [PATCH] Make NSIS printing Unicode --- buildPy2exe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildPy2exe.py b/buildPy2exe.py index bcfb493..6f24a94 100755 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -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)