Sending email in utf-8?
morphex at gmail.com
Mon Nov 7 17:39:25 CET 2005
I have an email that's in the utf-8 encoding, and I'm getting this
error message when I try to send it using smtplib:
* Module smtplib, line 688, in sendmail
* Module smtplib, line 485, in data
* Module smtplib, line 312, in send
* Module socket, line 1, in sendall
UnicodeEncodeError: 'ascii' codec can't encode characters in position
263-264: ordinal not in range(128)
any suggestions on how I can approach this so that the email can be
sent without raising errors?
More information about the Python-list