Title: TextDecoder incorrectly decodes 0x92 and several other characters for Windows-1252 · Issue #56542 · nodejs/node · GitHub
Open Graph Title: TextDecoder incorrectly decodes 0x92 and several other characters for Windows-1252 · Issue #56542 · nodejs/node
X Title: TextDecoder incorrectly decodes 0x92 and several other characters for Windows-1252 · Issue #56542 · nodejs/node
Description: Version v23.6.0, v22.13.0 Platform Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030 arm64 (but no problems reproducing it on Linux amd64 or arm64/) Subsystem No respo...
Open Graph Description: Version v23.6.0, v22.13.0 Platform Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030 arm64 (but no problems reproducing it on L...
X Description: Version v23.6.0, v22.13.0 Platform Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030 arm64 (but no problems reproducing it on L...
Opengraph URL: https://github.com/nodejs/node/issues/56542
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TextDecoder incorrectly decodes 0x92 and several other characters for Windows-1252","articleBody":"### Version\n\nv23.6.0, v22.13.0\n\n### Platform\n\n```text\nDarwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030 arm64\n\n(but no problems reproducing it on Linux amd64 or arm64/)\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```\nconst decoded = new TextDecoder(\"Windows-1252\").decode(new Uint8Array([146])).charCodeAt(0);;\nconsole[decoded === 8217 ? 'error' : 'log'](`Expected 8217 got ${decoded}`);\n```\n\n146 is now decoded as 146, not 8217. This still worked in v23.3.0 and v22.12.0 - might be related to the fix for https://github.com/nodejs/node/issues/56219 ?\n\n\n\n### How often does it reproduce? Is there a required condition?\n\nIt always fails\n\n### What is the expected behavior? Why is that the expected behavior?\n\nhttps://web.archive.org/web/20151027124421/https://msdn.microsoft.com/en-us/library/cc195054.aspx shows 0x92 should indeed be 0x2019\n\n\n### What do you see instead?\n\nsomething else\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/unilynx","@type":"Person","name":"unilynx"},"datePublished":"2025-01-10T09:23:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":15},"url":"https://github.com/56542/node/issues/56542"}
| 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:82bf1301-a79a-7155-0475-c433d261174e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A7E4:30A7B5:1D3773E:29F4B2E:6A4CEA7D |
| html-safe-nonce | 1973cce19b6c846171e4759f7825d0098bed1ceea6fecb79a4ba7ab7d954cfd8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0U0OjMwQTdCNToxRDM3NzNFOjI5RjRCMkU6NkE0Q0VBN0QiLCJ2aXNpdG9yX2lkIjoiNzk2Mjk0NDA1Mzc1MzczNTgwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17e93f83c2fae10d619f030192441ee93ba6cc43ca6de8b5142980631f682c6e |
| hovercard-subject-tag | issue:2779689629 |
| 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/nodejs/node/56542/issue_layout |
| twitter:image | https://opengraph.githubassets.com/dd802de7aaa90d96fe53509c70e1ce8cf2485c5c9c717e4a2ed2e9fd0c01e1bb/nodejs/node/issues/56542 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/dd802de7aaa90d96fe53509c70e1ce8cf2485c5c9c717e4a2ed2e9fd0c01e1bb/nodejs/node/issues/56542 |
| og:image:alt | Version v23.6.0, v22.13.0 Platform Darwin xxx 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:00:32 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6030 arm64 (but no problems reproducing it on L... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | unilynx |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | c5a57f04eeb310f57c73fd6d751d957e2ca27ed2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width