diff --git a/manimlib/utils/tex_file_writing.py b/manimlib/utils/tex_file_writing.py index 7bfcbf1b..1ebd3a82 100644 --- a/manimlib/utils/tex_file_writing.py +++ b/manimlib/utils/tex_file_writing.py @@ -32,7 +32,7 @@ def generate_tex_file(expression, template_tex_file_body): new_body = template_tex_file_body.replace( TEX_TEXT_TO_REPLACE, expression ) - with open(result, "w") as outfile: + with open(result, "w", encoding="utf-8") as outfile: outfile.write(new_body) return result