Author maxua
Recipients maxua
Date 2008-12-02.13:17:10
SpamBayes Score 0.00310738
Marked as misclassified No
Message-id <1228223832.43.0.0399583143577.issue4487@psf.upfronthosting.co.za>
In-reply-to
Content
When using MIME email package you can specify "utf8" as the encoding. It
will be accepted but it is not rendered correctly in some MUA. E.g. Mac
OS X Mail.app doesn't display it properly while Google Gmail does.

It is confusing since Python itself happily understands both utf8 and utf-8.

The patch adds "utf8" as an alias to "utf-8" encoding which means user
won't need to think twice.

Test case:
from email.MIMEText import MIMEText

msg = MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430')
msg.set_charset('utf8')
print msg.as_string()
History
Date User Action Args
2008-12-02 13:17:12maxuasetrecipients: + maxua
2008-12-02 13:17:12maxuasetmessageid: <1228223832.43.0.0399583143577.issue4487@psf.upfronthosting.co.za>
2008-12-02 13:17:11maxualinkissue4487 messages
2008-12-02 13:17:10maxuacreate