This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author maxua
Recipients maxua
Date 2008-12-02.13:17:10
SpamBayes Score 0.003107376
Marked as misclassified No
Message-id <>
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 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')
print msg.as_string()
Date User Action Args
2008-12-02 13:17:12maxuasetrecipients: + maxua
2008-12-02 13:17:12maxuasetmessageid: <>
2008-12-02 13:17:11maxualinkissue4487 messages
2008-12-02 13:17:10maxuacreate