Skip to content

Commit 3721fb1

Browse files
OliverStraitOliver Strait
andauthored
Use utf-8 encoding to read generated .tex files. (#4334)
Co-authored-by: Oliver Strait <[email protected]>
1 parent 3d029c1 commit 3721fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manim/utils/tex_file_writing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def print_all_tex_errors(log_file: Path, tex_compiler: str, tex_file: Path) -> N
288288
index for index, line in enumerate(tex_compilation_log) if line.startswith("!")
289289
]
290290
if error_indices:
291-
with tex_file.open() as f:
291+
with tex_file.open(encoding="utf-8") as f:
292292
tex = f.readlines()
293293
for error_index in error_indices:
294294
print_tex_error(tex_compilation_log, error_index, tex)

0 commit comments

Comments
 (0)