use 'encoding="utf-8"' when opening files in text mode (#8376)

This commit is contained in:
Mike Fährmann
2025-10-09 09:54:18 +02:00
parent f482e66417
commit 99d5c521d1
6 changed files with 10 additions and 10 deletions

View File

@@ -386,7 +386,7 @@ class UgoiraPP(PostProcessor):
content.append("")
ffconcat = tempdir + "/ffconcat.txt"
with open(ffconcat, "w") as fp:
with open(ffconcat, "w", encoding="utf-8") as fp:
fp.write("\n".join(content))
return ffconcat
@@ -401,7 +401,7 @@ class UgoiraPP(PostProcessor):
content.append("")
timecodes = tempdir + "/timecodes.tc"
with open(timecodes, "w") as fp:
with open(timecodes, "w", encoding="utf-8") as fp:
fp.write("\n".join(content))
return timecodes