Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add encoding for `open()` function in text_file_writing module (#2995)

Naveen M K98993ba9addd
diff --git a/manim/utils/tex_file_writing.py b/manim/utils/tex_file_writing.py
index d335691da..d90b8af0e 100644
--- a/manim/utils/tex_file_writing.py
+++ b/manim/utils/tex_file_writing.py
@@ -250,7 +250,7 @@ def print_all_tex_errors(log_file, tex_compiler, tex_file):
f"{tex_compiler} failed but did not produce a log file. "
"Check your LaTeX installation.",
)
- with open(log_file) as f:
+ with open(log_file, encoding="utf-8") as f:
tex_compilation_log = f.readlines()
error_indices = [
index