python email decode_header raise HeaderParseError

I got a HeaderParseError as below.Who can tell me what’s wrong with it?

>>> from email import Header

s= “=?UTF-8?B?6KGM6KGM5ZyI5Li65oKo5o6o6I2Q5Lul5LiL6IGM5L2N77yM?==?UTF-8?B?56Wd5oKo5om+5Yiw5aW95bel5L2c77yB44CQ6KGM6KGM5ZyI44CR?=”
src = Header.decode_header(s)
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python2.7/email/header.py”, line 108, in decode_header
raise HeaderParseError
email.errors.HeaderParseError


Source: python

Leave a Reply