Fix issue with captioner sometimes outputting not utf-8 characters
This commit is contained in:
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:
|
||||
|
||||
Reference in new issue
Block a user