Internationalised email subjects
bugmagnet at gmail.com
bugmagnet at gmail.com
Wed Jun 20 09:34:59 EDT 2007
Thanks Martin, I actually have read that page before. The part that
confuses me is the line:
h = Header('p\xf6stal', 'iso-8859-1')
I have tried using:
h = Header(' ', 'GB2312')
but when I run the code, I get the following error:
UnicodeDecodeError: 'gb2312' codec can't decode bytes in position 2-3:
illegal multibyte sequence
Is there something I need to do in order to encode the Chinese
characters into the GB2312 character set?
More information about the Python-list
mailing list