mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Made sure to always encode written TeX files as UTF-8
This commit is contained in:
parent
cdcdb152f3
commit
f48eb6d94e
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import os
|
||||
import hashlib
|
||||
import codecs
|
||||
|
||||
from manimlib.constants import TEX_DIR
|
||||
from manimlib.constants import TEX_TEXT_TO_REPLACE
|
||||
|
@ -32,7 +33,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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue