-
- Downloads
bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)
It was raised if the charset itself contains characters not encodable in UTF-8 (in particular \udcxx characters representing non-decodable bytes in the source). (cherry picked from commit e91dee87) Co-authored-by:Serhiy Storchaka <storchaka@gmail.com>
Showing
- Lib/email/_encoded_words.py 5 additions, 5 deletionsLib/email/_encoded_words.py
- Lib/email/_header_value_parser.py 1 addition, 1 deletionLib/email/_header_value_parser.py
- Lib/test/test_email/test__encoded_words.py 7 additions, 0 deletionsLib/test/test_email/test__encoded_words.py
- Lib/test/test_email/test_email.py 9 additions, 0 deletionsLib/test/test_email/test_email.py
- Lib/test/test_email/test_headerregistry.py 12 additions, 0 deletionsLib/test/test_email/test_headerregistry.py
- Misc/NEWS.d/next/Library/2022-03-27-12-40-16.bpo-43323.9mFPuI.rst 2 additions, 0 deletions...S.d/next/Library/2022-03-27-12-40-16.bpo-43323.9mFPuI.rst
Loading
Please register or sign in to comment