email header decoding fails

ZeeGeek ZeeGeek at gmail.com
Wed Apr 9 22:12:00 EDT 2008


It seems that the decode_header function in email.Header fails when
the string is in the following form,

'=?gb2312?Q?=D0=C7=C8=FC?=(revised)'

That's when a non-encoded string follows the encoded string without
any whitespace. In this case, decode_header function treats the whole
string as non-encoded. Is there a work around for this problem?

Thanks.



More information about the Python-list mailing list