Browse Source

fix another utf-8 (and maybe last) issue in reminder.py

Julien Rabier 12 years ago
parent
commit
0575434565
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reminder.py

+ 1 - 1
reminder.py

@@ -56,7 +56,7 @@ for vote in c.execute('select id, id_group, date_end, title from votes where is_
                 server = smtplib.SMTP(SMTP_SERVER)
                 print EMAIL
                 print user[1]
-                print BODY
+                print BODY.encode('utf-8')
                 server.sendmail(EMAIL, user[1], BODY.encode('utf-8'))
                 server.quit()
             else: