From 8b3073a4f66c67aefc63b906ef3e3ef9dec2d2e9 Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Sun, 15 Nov 2015 17:18:40 +0100 Subject: [PATCH] Bugfix pro atrey a jeho latin TeX --- seminar/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seminar/views.py b/seminar/views.py index 47316329..1f51048a 100644 --- a/seminar/views.py +++ b/seminar/views.py @@ -372,7 +372,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("utf-8")) + texfile.write(tex.decode("utf-8").encode("iso-8859-2")) 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)