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
RFC 2231 support for email package #36505
Comments
RFC 2231 defines the methods for encoding and decoding This patch adds support for parameter decoding. It
|
Logged In: YES Did you test this code with non-ASCII messages? I discourage the use of the default encoding. Instead, if an I'm not sure how to deal with UnicodeErrors when |
Logged In: YES
I did.
What is the "default encoding" in this context? |
1 similar comment
Logged In: YES
I did.
What is the "default encoding" in this context? |
Logged In: YES The default encoding is the one returned by In your patch, the line value = unicode(value[2], value[0]).encode() makes use of the default encoding in the .encode call; this |
Logged In: YES
This particular function (_formatparam) must return an ASCII |
Logged In: YES If it really *has* to be ASCII, please be explicit about Another comment: 'languge' is spelled incorrectly in a few |
Logged In: YES
Agree.
Fixed. |
Logged In: YES New patch uploaded. |
Logged In: YES Thanks Oleg! Sorry for the delay. I've accepted this patch |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: