Roy Hyunjin Han <[email protected]> added the comment:
Currently using the following workaround.
import re
import email.header
def decodeSafely(x):
match = re.search('(=\?.*?\?B\?)', x)
if not match:
return x
encoding = match.group(1)
return email.header.decode_header('%s%s==?=' % (encoding,
x.replace(encoding, '').replace('?', '').replace('=', '')))
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10574>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com