-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: list encodings supported by buffer.transcode #22263
Conversation
doc/api/buffer.md
Outdated
@@ -2508,6 +2508,9 @@ encoding to another. Returns a new `Buffer` instance. | |||
Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if | |||
conversion from `fromEnc` to `toEnc` is not permitted. | |||
|
|||
Encodings supported by `buffer.transcode()` include: `'ascii'`, `'utf8'`, | |||
`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does 'hex'
needs to be added here? (documentation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. 'hex' is not supported
doc/api/buffer.md
Outdated
@@ -2508,6 +2508,9 @@ encoding to another. Returns a new `Buffer` instance. | |||
Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if | |||
conversion from `fromEnc` to `toEnc` is not permitted. | |||
|
|||
Encodings supported by `buffer.transcode()` include: `'ascii'`, `'utf8'`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include
-> are
assuming the list is supposed to be a complete list of supported encodings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to make whatever editorial changes you'd like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wanted to confirm the list is supposed to be complete before doing it. I'll take that as a "yes, it's a complete list" and make the change now. 👍
@nodejs/documentation Not sure if there's a desired formatting standard for "string values permitted for this argument must be from this small set". I don't think we have one, so I'm fine with this the way it is. Regardless, PTAL. |
@nodejs/buffer |
Node.js Collaborators, please, add 👍 here if you approve fast-tracking. |
Fixes: #15632 PR-URL: #22263 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Landed in a5b3c15 (fast tracked with approval) |
Fixes: #15632 PR-URL: #22263 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
Fixes: #15632
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes