ci: Explicitly set the encoding as UTF-8 in the python script since that is not the windows default encoding [skip ci]

This commit is contained in:
2024-12-19 16:36:56 -07:00
parent 276a672df4
commit 4f6e64083a
2 changed files with 4 additions and 5 deletions
+3 -3
View File
@@ -16,12 +16,12 @@ print(" TEMPLATE PATH: %s" % template_file_path)
print(" SAVING AT: %s" % generated_file_path)
print(" HASH: %s" % hash_64)
with open(template_file_path, "r") as template_file:
with open(template_file_path, "r", encoding="utf-8") as template_file:
template = Template(template_file.read())
substitute = template.safe_substitute(version=version, hash_64=hash_64)
print("\n================== Generated package file ==================\n")
print(substitute)
print("\n============================================================\n")
with open(generated_file_path, "w") as generated_file:
generated_file.write(substitute)
with open(generated_file_path, "w", encoding="utf-8") as generated_file:
generated_file.write(substitute)