From: Etienne Millon Date: Mon, 20 Feb 2012 14:28:52 +0000 (+0100) Subject: Prefer utf8 in CHARSET_LIST X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be1f8907eee5f5995952cffb5a29e6aee45fb53a;p=rss2email.git Prefer utf8 in CHARSET_LIST Bug-Debian: http://bugs.debian.org/659920 --- diff --git a/config.py.example b/config.py.example index 9828c8e..c22dc8b 100755 --- a/config.py.example +++ b/config.py.example @@ -91,4 +91,4 @@ PROXY="" # To most correctly encode emails with international characters, we iterate through the list below and use the first character set that works # Eventually (and theoretically) ISO-8859-1 and UTF-8 are our catch-all failsafes -CHARSET_LIST='US-ASCII', 'BIG5', 'ISO-2022-JP', 'ISO-8859-1', 'UTF-8' +CHARSET_LIST='US-ASCII', 'ISO-8859-1', 'UTF-8', 'BIG5', 'ISO-2022-JP' diff --git a/rss2email.py b/rss2email.py index 9735b28..69998db 100755 --- a/rss2email.py +++ b/rss2email.py @@ -108,7 +108,7 @@ PROXY="" # To most correctly encode emails with international characters, we iterate through the list below and use the first character set that works # Eventually (and theoretically) ISO-8859-1 and UTF-8 are our catch-all failsafes -CHARSET_LIST='US-ASCII', 'BIG5', 'ISO-2022-JP', 'ISO-8859-1', 'UTF-8' +CHARSET_LIST='US-ASCII', 'ISO-8859-1', 'UTF-8', 'BIG5', 'ISO-2022-JP' from email.MIMEText import MIMEText from email.Header import Header