Title: unpack should decode string types by default · Issue #99 · msgpack/msgpack-python · GitHub
Open Graph Title: unpack should decode string types by default · Issue #99 · msgpack/msgpack-python
X Title: unpack should decode string types by default · Issue #99 · msgpack/msgpack-python
Description: msgpack has native text and binary types, but the default behavior of msgpack.unpackb of the text type is to return the still-encoded bytes, rather than the decoded text (unicode on Python 2, str on Python 3). The msgpack spec specifies ...
Open Graph Description: msgpack has native text and binary types, but the default behavior of msgpack.unpackb of the text type is to return the still-encoded bytes, rather than the decoded text (unicode on Python 2, str o...
X Description: msgpack has native text and binary types, but the default behavior of msgpack.unpackb of the text type is to return the still-encoded bytes, rather than the decoded text (unicode on Python 2, str o...
Opengraph URL: https://github.com/msgpack/msgpack-python/issues/99
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"unpack should decode string types by default","articleBody":"msgpack has native text and binary types, but the default behavior of `msgpack.unpackb` of the text type is to return the still-encoded bytes, rather than the decoded text (unicode on Python 2, str on Python 3). The msgpack spec [specifies](https://github.com/msgpack/msgpack/blob/master/spec.md#type-system) that strings are utf-8, so it should be a logical default.\n\nChanging the default value for `Unpacker.encoding` from `None` to `utf-8` would introduce the desired behavior, but it would be problematic for anyone relying on the default behavior. So I thought I would ask before opening a PR. Would a pull request with this change be accepted?\n","author":{"url":"https://github.com/minrk","@type":"Person","name":"minrk"},"datePublished":"2014-05-16T21:38:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/99/msgpack-python/issues/99"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:61e9ed6c-5612-891a-111f-c27aa039ae61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEDA:14AB50:1DA8B97:26884EA:697459AF |
| html-safe-nonce | a1c3a79228b9b313f44eff2ddf699a2869c898cdf8dbf3c92fb0ecf2ec7dad75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRURBOjE0QUI1MDoxREE4Qjk3OjI2ODg0RUE6Njk3NDU5QUYiLCJ2aXNpdG9yX2lkIjoiNjg1MDU0MDk0ODQ4MDYxMjc4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6e9a38652c9d1b97a9012bfe9cdf2415135e79729a7e1675cac7f77c0dda5d44 |
| hovercard-subject-tag | issue:33711665 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/msgpack/msgpack-python/99/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9196d812c31f93feb26bc3df176ff53e0d4d91aa13d2f4a8ee0d47a96b389d8f/msgpack/msgpack-python/issues/99 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9196d812c31f93feb26bc3df176ff53e0d4d91aa13d2f4a8ee0d47a96b389d8f/msgpack/msgpack-python/issues/99 |
| og:image:alt | msgpack has native text and binary types, but the default behavior of msgpack.unpackb of the text type is to return the still-encoded bytes, rather than the decoded text (unicode on Python 2, str o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | minrk |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/msgpack/msgpack-python git https://github.com/msgpack/msgpack-python.git |
| octolytics-dimension-user_id | 198264 |
| octolytics-dimension-user_login | msgpack |
| octolytics-dimension-repository_id | 2242705 |
| octolytics-dimension-repository_nwo | msgpack/msgpack-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2242705 |
| octolytics-dimension-repository_network_root_nwo | msgpack/msgpack-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width