From 07c12d606a21b82036a1d048dff6ae28d244c76c Mon Sep 17 00:00:00 2001 From: Nephirus Date: Fri, 27 May 2011 00:45:32 +0200 Subject: [PATCH] Fixed charset --- announcer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/announcer.py b/announcer.py index 4306547..e6d9b9b 100755 --- a/announcer.py +++ b/announcer.py @@ -54,11 +54,10 @@ for line in l2: if a is not None: out.append(a.group(1) + "\n") -msg = MIMEText("".join(out)) +msg = MIMEText("".join(out), _charset="utf-8") msg['Subject'] = "Týdenní přehled událostí" msg['From'] = "noreply@brmlab.cz" msg['To'] = dest_addr -msg._charset = "utf-8" if out.__len__() > 0: s = smtplib.SMTP(smtp_server)