email header decoding fails

ZeeGeek ZeeGeek at gmail.com
Thu Apr 10 04:12:00 CEST 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