Message76738
| Author |
maxua |
| Recipients |
maxua |
| Date |
2008年12月02日.13:17:10 |
| SpamBayes Score |
0.003107376 |
| 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:12 | maxua | set | recipients:
+ maxua |
| 2008年12月02日 13:17:12 | maxua | set | messageid: <1228223832.43.0.0399583143577.issue4487@psf.upfronthosting.co.za> |
| 2008年12月02日 13:17:11 | maxua | link | issue4487 messages |
| 2008年12月02日 13:17:10 | maxua | create |
|