cpython/Misc/NEWS.d/next/Core and Builtins/2022-07-07-05-37-53.gh-issu...

4 lines
215 B
ReStructuredText

Fix UnicodeEncodeError when :func:`email.message.get_payload` reads a message
with a Unicode surrogate character and the message content is not well-formed for
surrogateescape encoding. Patch by Sidney Markowitz.