[issue4661] email.parser: impossible to read messages encoded in a different encoding

Antoine Pitrou report at bugs.python.org
Wed Sep 22 01:18:14 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

A couple of comments:
- what is `str(self.get_param('charset', 'ascii'))` supposed to achieve? does get_param() return a bytes object?
- instead of ascii+surrogateescape, you could simply use latin1

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4661>
_______________________________________


More information about the Python-bugs-list mailing list