How to send an email with non-ascii characters in Python

Kent Johnson kent at kentsjohnson.com
Sat Feb 25 23:46:43 EST 2006


Gabriel B. wrote:
> what does a string became when it's decoded?
> 
> I mean, it must be encoded in something, right?

Unicode, for encodings like latin-1 or utf-8. A few special cases like 
str.decode('string_escape') yield byte strings again.

Kent



More information about the Python-list mailing list