-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-43323: Fix UnicodeEncodeError in the email module #32137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-43323: Fix UnicodeEncodeError in the email module #32137
Conversation
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).
There are more suspicious places in the code but I was unable to find a reproducer for them. I am not sure the new behavior is correct, but at least the code no longer raises an exception. |
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
GH-92074 is a backport of this pull request to the 3.10 branch. |
GH-92075 is a backport of this pull request to the 3.9 branch. |
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 e91dee8) Co-authored-by: Serhiy Storchaka <[email protected]>
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 e91dee8) Co-authored-by: Serhiy Storchaka <[email protected]>
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 e91dee8) Co-authored-by: Serhiy Storchaka <[email protected]>
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 e91dee8) Co-authored-by: Serhiy Storchaka <[email protected]>
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).
https://bugs.python.org/issue43323