Re: bug report
"R. David Murray" <[email protected]> Wed, 02 Mar 2011 19:40:36 -0500
| Newsgroups | gmane.comp.python.mime.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 29 Oct 2010 00:37:26 +0200, Tobias Koeck <[email protected]> wrote: > 'ascii' codec can't encode character u'\xfc' in position 40: ordinal > not in range(128) > Traceback (most recent call last): > File "/usr/lib/calibre/calibre/gui2/device.py", line 588, in > _send_mails > attachment_name = attachment_names[i]) > File "/usr/lib/calibre/calibre/utils/smtp.py", line 179, in > compose_mail > attachment_name=attachment_name) > File "/usr/lib/calibre/calibre/utils/smtp.py", line 29, in create_mail > msg = MIMEText(text) > File "/usr/lib/python2.6/email/mime/text.py", line 30, in __init__ > self.set_payload(_text, _charset) > File "/usr/lib/python2.6/email/message.py", line 224, in set_payload > self.set_charset(charset) > File "/usr/lib/python2.6/email/message.py", line 260, in set_charset > self._payload = self._payload.encode(charset.output_charset) > UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in > position 40: ordinal not in range(128) Please submit a bug report at bugs.python.org with additional details if you can (ie: what was the input to MIMEText that triggered this error, and what version of python are you using?) --David