Fix issue with captioner sometimes outputting not utf-8 characters

This commit is contained in:
Jaret Burkett committed 2026-04-14 14:37:21 -06:00
1 parent 3e0c904054
commit 97d8c05d75
1 file changed
+1 -1
@@ -133,7 +133,7 @@ class BaseCaptioner(BaseExtensionProcess):
# delete it if it already exists
if os.path.exists(caption_file_path):
os.remove(caption_file_path)
with open(caption_file_path, "w") as f:
with open(caption_file_path, "w", encoding="utf-8") as f:
f.write(caption)
def get_caption_for_file(self, file_path: str) -> str: