Title: gh-150771: Fix email serialization for shift_jis and euc-jp by bhuvi27 · Pull Request #151120 · python/cpython · GitHub
Open Graph Title: gh-150771: Fix email serialization for shift_jis and euc-jp by bhuvi27 · Pull Request #151120 · python/cpython
X Title: gh-150771: Fix email serialization for shift_jis and euc-jp by bhuvi27 · Pull Request #151120 · python/cpython
Description: Fixes #150771 Creating a message with set_content(..., charset='shift_jis') or charset='euc-jp' raised UnicodeEncodeError on str(m) because the payload was encoded with the input charset while the Content-Type uses the output charset (iso-2022-jp). Use Charset.output_charset in set_text_content so the payload and Content-Type agree from the start. Issue: gh-150771
Open Graph Description: Fixes #150771 Creating a message with set_content(..., charset='shift_jis') or charset='euc-jp' raised UnicodeEncodeError on str(m) because the payload was encoded with the input ch...
X Description: Fixes #150771 Creating a message with set_content(..., charset='shift_jis') or charset='euc-jp' raised UnicodeEncodeError on str(m) because the payload was encoded w...
Opengraph URL: https://github.com/python/cpython/pull/151120
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:390da286-8f1f-34ec-f59c-46e0e1921d5f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E712:1F19:1243097:19C1838:6A4F40D3 |
| html-safe-nonce | 4d8019676014e0848ee574c6632da0f27f33486e68a872fd54094b629f94cc4b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzEyOjFGMTk6MTI0MzA5NzoxOUMxODM4OjZBNEY0MEQzIiwidmlzaXRvcl9pZCI6IjI4OTI3MDAwNTgwNTgxNzg3NzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1df94729b98a0f0c88034cb320ce82da9b7ff2beff75fa90daccf19c033ad25e |
| hovercard-subject-tag | pull_request:3828189053 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/151120/files |
| twitter:image | https://avatars.githubusercontent.com/u/15888476?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/15888476?s=400&v=4 |
| og:image:alt | Fixes #150771 Creating a message with set_content(..., charset='shift_jis') or charset='euc-jp' raised UnicodeEncodeError on str(m) because the payload was encoded with the input ch... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width