bug report

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug report

Tobias Koeck
'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)

---

used: Calibre with German PDF
_______________________________________________
Email-SIG mailing list
[hidden email]
Your options: http://mail.python.org/mailman/options/email-sig/lists%40nabble.com
Reply | Threaded
Open this post in threaded view
|

Re: bug report

R. David Murray
On Fri, 29 Oct 2010 00:37:26 +0200, Tobias Koeck <[hidden email]> 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
_______________________________________________
Email-SIG mailing list
[hidden email]
Your options: http://mail.python.org/mailman/options/email-sig/lists%40nabble.com