A community-maintained Python framework for creating mathematical animations.
Use unicode encoding in add_subcaption() (#3062)
Onur Solmazbd0ba12104f4
diff --git a/manim/scene/scene_file_writer.py b/manim/scene/scene_file_writer.pyindex 0767d8e50..189158867 100644--- a/manim/scene/scene_file_writer.py+++ b/manim/scene/scene_file_writer.py@@ -727,7 +727,7 @@ class SceneFileWriter:def write_subcaption_file(self):"""Writes the subcaption file."""subcaption_file = Path(config.output_file).with_suffix(".srt")- subcaption_file.write_text(srt.compose(self.subcaptions))+ subcaption_file.write_text(srt.compose(self.subcaptions), encoding="utf-8")logger.info(f"Subcaption file has been written as {subcaption_file}")def print_file_ready_message(self, file_path):