fix unicode error when generating latex

This commit is contained in:
Damien Elmes 2017-08-06 13:03:32 +10:00
parent 68d55239b4
commit 072489f436

View file

@ -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()