From ca2900e9d1b4dad5924372f88f51fa771a51e3a6 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Thu, 17 May 2012 21:34:19 +0200 Subject: [PATCH] #195: Fixed unicode string in pdf header. --- openslides/utils/pdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/utils/pdf.py b/openslides/utils/pdf.py index 82efc93df..fb9394662 100755 --- a/openslides/utils/pdf.py +++ b/openslides/utils/pdf.py @@ -188,9 +188,9 @@ def firstPage(canvas, doc): # page header (with event information) canvas.setFont('Ubuntu', 10) canvas.setFillGray(0.4) - canvas.drawString(2.75*cm, 28*cm, "%s | %s" % (config["event_name"], config["event_description"])) + canvas.drawString(2.75*cm, 28*cm, u"%s | %s" % (config["event_name"], config["event_description"])) if config["event_date"] and config["event_location"]: - canvas.drawString(2.75 * cm, 27.6 * cm, "%s, %s" % (config["event_date"], config["event_location"])) + canvas.drawString(2.75 * cm, 27.6 * cm, u"%s, %s" % (config["event_date"], config["event_location"])) # time canvas.setFont('Ubuntu', 7) time = datetime.now().strftime(str(_("%Y-%m-%d %H:%Mh")))