Author pitrou
Recipients georg.brandl, pitrou
Date 2009-07-19.13:21:53
SpamBayes Score 3.25134e-07
Marked as misclassified No
Message-id <1248009720.26.0.953937070871.issue6521@psf.upfronthosting.co.za>
In-reply-to
Content
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/text.py", line 30, in __init__
    self.set_payload(_text, _charset)
  File "/usr/lib64/python2.6/email/message.py", line 224, in set_payload
    self.set_charset(charset)
  File "/usr/lib64/python2.6/email/message.py", line 266, in set_charset
    self._payload = charset.body_encode(self._payload)
  File "/usr/lib64/python2.6/email/charset.py", line 387, in body_encode
    return email.base64mime.body_encode(s)
  File "/usr/lib64/python2.6/email/base64mime.py", 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)
History
Date User Action Args
2009-07-19 13:22:00pitrousetrecipients: + pitrou, georg.brandl
2009-07-19 13:22:00pitrousetmessageid: <1248009720.26.0.953937070871.issue6521@psf.upfronthosting.co.za>
2009-07-19 13:21:54pitroulinkissue6521 messages
2009-07-19 13:21:53pitroucreate