From: Julien Rabier Date: Sat, 25 May 2013 23:30:39 +0000 (+0200) Subject: fix another utf-8 issue in reminder.py X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/%7B%7B%20url_for%28%27static%27%2C%20filename=%27css/%40%20%27entree_url%27%20=%3E%20%27URL%20of%20your%20site%27%2C%20%27entree_url_2%27%20=%3E%20%27Site%20URL%27%2C%20%27erreur_connect_deja_existant%27%20=%3E%20%27There%20is%20already%20a%20server%20with%20that%20name%20%27%2C%20%27erreur_email_deja_existant%27%20=%3E%20%27This%20email%20address%20is%20already%20registered.%27%2C%20%27erreur_nom_connect_incorrect%27%20=%3E%20%27Server%20name%20not%20allowed%27%2C%20%27erreur_plugin_desinstalation_echouee%27%20=%3E%20%27Uninstallation%20of%20the%20plugin%20failed.%20However%2C%20you%20may%20deactivate%20it.%27%2C%20%27erreur_plugin_fichier_absent%27%20=%3E%20%27File%20missing%27%2C%40%40%20-198%2C16%20%20170%2C12%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=ff3647893d53d0c27a90df1706e7c699535dd93d;p=cavote.git fix another utf-8 issue in reminder.py --- diff --git a/reminder.py b/reminder.py index 6be8643..e379081 100644 --- a/reminder.py +++ b/reminder.py @@ -80,6 +80,6 @@ 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()