mirror of
https://github.com/mwpenny/portal64-still-alive.git
synced 2024-11-23 12:29:43 +00:00
Do not use platform default encoding when generating subtitles
Windows uses cp1252, but we need UTF8. Specify it explicitly.
This commit is contained in:
parent
6f1834f742
commit
725afb48c8
@ -108,7 +108,7 @@ def dump_lines(sourcefile_path, lines):
|
||||
if not os.path.exists(os.path.dirname(os.path.abspath(sourcefile_path))):
|
||||
os.makedirs(os.path.dirname(os.path.abspath(sourcefile_path)))
|
||||
|
||||
with open(sourcefile_path, "w") as f:
|
||||
with open(sourcefile_path, "w", encoding="utf-8") as f:
|
||||
f.writelines(lines)
|
||||
|
||||
def get_caption_keys_values_language(lines):
|
||||
|
Loading…
Reference in New Issue
Block a user