Title: Should aliased encodings be dropped? · Issue #58 · purescript-node/purescript-node-buffer · GitHub
Open Graph Title: Should aliased encodings be dropped? · Issue #58 · purescript-node/purescript-node-buffer
X Title: Should aliased encodings be dropped? · Issue #58 · purescript-node/purescript-node-buffer
Description: As of Node 18, there are 3 encodings that are simply aliases to another: binary is an alias for latin1 See binary strings for more background on this topic. The name of this encoding can be very misleading, as all of the encodings listed...
Open Graph Description: As of Node 18, there are 3 encodings that are simply aliases to another: binary is an alias for latin1 See binary strings for more background on this topic. The name of this encoding can be very mi...
X Description: As of Node 18, there are 3 encodings that are simply aliases to another: binary is an alias for latin1 See binary strings for more background on this topic. The name of this encoding can be very mi...
Opengraph URL: https://github.com/purescript-node/purescript-node-buffer/issues/58
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should aliased encodings be dropped?","articleBody":"As of Node 18, there are [3 encodings that are simply aliases to another](https://nodejs.org/docs/latest-v16.x/api/buffer.html#buffers-and-character-encodings):\r\n- `binary` is an alias for `latin1`\r\n - \u003e See [binary strings](https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary) for more background on this topic. The name of this encoding can be very misleading, as all of the encodings listed here convert between strings and binary data. For converting between strings and Buffers, typically 'utf8' is the right choice.\r\n- `ucs2` and `ucs-2` are both aliases to `utf16le`.\r\n- `ascii` is an alias in one direction but not another: \r\n - \u003e For 7-bit [ASCII](https://en.wikipedia.org/wiki/ASCII) data only. When encoding a string into a Buffer, this is equivalent to using 'latin1'. When decoding a Buffer into a string, using this encoding will additionally unset the highest bit of each byte before decoding as 'latin1'. Generally, there should be no reason to use this encoding, as 'utf8' (or, if the data is known to always be ASCII-only, 'latin1') will be a better choice when encoding or decoding ASCII-only text. It is only provided for legacy compatibility.","author":{"url":"https://github.com/JordanMartinez","@type":"Person","name":"JordanMartinez"},"datePublished":"2023-07-05T18:35:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/58/purescript-node-buffer/issues/58"}
| 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:cf89ab8e-437b-18be-6ce2-5e3457874cad |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 942E:1DFAA9:A1A8780:D160C42:697655FE |
| html-safe-nonce | b0ac6131551fea3aa681bb9afde50696d7f4a88fbeb45544519395ed3ab1bbe3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDJFOjFERkFBOTpBMUE4NzgwOkQxNjBDNDI6Njk3NjU1RkUiLCJ2aXNpdG9yX2lkIjoiMzA0Nzg4NDc1NTUyNjExMjc2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ca7e52df9cc08f880bb599e68a5fa7a466422b5f20326cbd3b5615b77d031420 |
| hovercard-subject-tag | issue:1790079436 |
| 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/purescript-node/purescript-node-buffer/58/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1dd1b5a4e5a52b31f972332a4b30fb6f8fc71bff69353b2c9fbf07d19576f0b5/purescript-node/purescript-node-buffer/issues/58 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1dd1b5a4e5a52b31f972332a4b30fb6f8fc71bff69353b2c9fbf07d19576f0b5/purescript-node/purescript-node-buffer/issues/58 |
| og:image:alt | As of Node 18, there are 3 encodings that are simply aliases to another: binary is an alias for latin1 See binary strings for more background on this topic. The name of this encoding can be very mi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JordanMartinez |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-node/purescript-node-buffer git https://github.com/purescript-node/purescript-node-buffer.git |
| octolytics-dimension-user_id | 12017641 |
| octolytics-dimension-user_login | purescript-node |
| octolytics-dimension-repository_id | 17997584 |
| octolytics-dimension-repository_nwo | purescript-node/purescript-node-buffer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17997584 |
| octolytics-dimension-repository_network_root_nwo | purescript-node/purescript-node-buffer |
| 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 | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width