Fix unicode issue with script.

This commit is contained in:
Mr_Goldberg 2022-08-08 01:38:57 -04:00
parent 7c419e0afe
commit 1ad2818e28
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -195,7 +195,7 @@ for appid in appids:
except:
dlc_config_list.append((dlc, None))
with open(os.path.join(out_dir, "DLC.txt"), 'w') as f:
with open(os.path.join(out_dir, "DLC.txt"), 'w', encoding="utf-8") as f:
for x in dlc_config_list:
if (x[1] is not None):
f.write("{}={}\n".format(x[0], x[1]))