gh-105285: Use UTF-8 on email content when CTE is '8bit'#105306
gh-105285: Use UTF-8 on email content when CTE is '8bit'#105306michaelfm1211 wants to merge 4 commits into
Conversation
When getting the payload of an email using email.message.Message.get_payload() and passing decode=True, attempt to use UTF-8 if the Content-Transfer-Encoding header is '8bit'.
|
Just came back to check on this, and it seems the documentation preview check hasn't passed even though there is no documentation to be built. I don't believe this change would require any documentation changes, as it's a bug fix. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
UTF-8 is not always the right encoding. It should be self.get_param('charset', 'ascii').
|
hey @michaelfm1211 @serhiy-storchaka, |
|
Hi, news on this? I'm currently facing the same problem and the fix seems to work. |
|
@lorenzomorandini Sorry, I kind of just forgot about this PR a few months ago when I was busy with work. I'll try to address the review today. |
|
The following commit authors need to sign the Contributor License Agreement: |
|
This PR is stale because it has been open for 30 days with no activity. |
When getting the payload of an email using
email.message.Message.get_payload() and passing decode=True, attempt to use UTF-8 if the Content-Transfer-Encoding header is '8bit'.