Roy Hyunjin Han <starsareblueandfara...@gmail.com> 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 <rep...@bugs.python.org> <http://bugs.python.org/issue10574> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com