From 36dbab7b38844edfe9a033f56a161f4f4853e805 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Fri, 14 Sep 2018 18:11:12 +0200 Subject: [PATCH] Na gimlim je UTF-8 TeX --- seminar/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/seminar/views.py b/seminar/views.py index 3e3754f2..a42e697d 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -566,8 +566,7 @@ def obalkyView(request,resitele): tempdir = tempfile.mkdtemp() with open(tempdir+"/obalky.tex","w") as texfile: - # Pokud TeX chce ISO Latin, tak se da encode nastavit - texfile.write(tex.decode("utf-8").encode("iso-8859-2")) + texfile.write(tex) shutil.copy(os.path.join(settings.STATIC_ROOT, 'seminar/lisak.eps'),tempdir) subprocess.call(["csplain","obalky.tex"],cwd = tempdir) subprocess.call(["dvipdf","obalky.dvi"],cwd = tempdir)