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?
--
http://mail.python.org/mailman/listinfo/python-list
