[issue21315] email._header_value_parser does not recognise in-line encoding changes

Abhilash Raj report at bugs.python.org
Fri May 17 14:21:48 EDT 2019


Abhilash Raj <raj.abhilash1 at gmail.com> added the comment:

The solution replaces RFC 20147 chrome for utf-8 and q to make sure there is a space before ew, it wouldn't replace in case of any other charset/cte pair.

    value = value.replace("=?UTF-8?Q?=20", " =?UTF-8?Q?")

Isn't that correct?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue21315>
_______________________________________


More information about the Python-bugs-list mailing list