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 pitrou
Recipients georg.brandl, pitrou
Date 2009-07-19.13:21:53
SpamBayes Score 3.2513375e-07
Marked as misclassified No
Message-id <>
Apparently it doesn't:

>>> message = MIMEText(u"héhé", _charset="utf-8")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/email/mime/", line 30, in __init__
    self.set_payload(_text, _charset)
  File "/usr/lib64/python2.6/email/", line 224, in set_payload
  File "/usr/lib64/python2.6/email/", line 266, in set_charset
    self._payload = charset.body_encode(self._payload)
  File "/usr/lib64/python2.6/email/", line 387, in body_encode
    return email.base64mime.body_encode(s)
  File "/usr/lib64/python2.6/email/", line 147, in encode
    enc = b2a_base64(s[i:i + max_unencoded])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in
position 1: ordinal not in range(128)
Date User Action Args
2009-07-19 13:22:00pitrousetrecipients: + pitrou, georg.brandl
2009-07-19 13:22:00pitrousetmessageid: <>
2009-07-19 13:21:54pitroulinkissue6521 messages
2009-07-19 13:21:53pitroucreate