mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
fix unicode error when generating latex
This commit is contained in:
parent
68d55239b4
commit
072489f436
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ package in the LaTeX header instead.""") % bad
|
|||
# write into a temp file
|
||||
log = open(namedtmp("latex_log.txt"), "w")
|
||||
texpath = namedtmp("tmp.tex")
|
||||
texfile = open(texpath, "w")
|
||||
texfile = open(texpath, "w", encoding="utf8")
|
||||
texfile.write(latex)
|
||||
texfile.close()
|
||||
mdir = col.media.dir()
|
||||
|
|
Loading…
Reference in a new issue