diff --git a/devine/core/tracks/subtitle.py b/devine/core/tracks/subtitle.py index 1edceca..a69a6e4 100644 --- a/devine/core/tracks/subtitle.py +++ b/devine/core/tracks/subtitle.py @@ -362,17 +362,13 @@ class Subtitle(Track): [ executable, "/Convert", self.path, "srt", + "/encoding:utf8", "/overwrite", "/RemoveTextForHI" ], check=True, stdout=subprocess.DEVNULL ) - # Remove UTF-8 Byte Order Marks - self.path.write_text( - self.path.read_text(encoding="utf-8-sig"), - encoding="utf8" - ) else: sub = Subtitles(self.path) sub.filter(