-
-
Notifications
You must be signed in to change notification settings - Fork 37.2k
buffer.transcode: document valid encodings #15632
Copy link
Copy link
Closed
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.encodingIssues and PRs related to the TextEncoder and TextDecoder APIs.Issues and PRs related to the TextEncoder and TextDecoder APIs.i18n-apiIssues and PRs related to Node.js internationalization support.Issues and PRs related to Node.js internationalization support.
Description
Activity
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.encodingIssues and PRs related to the TextEncoder and TextDecoder APIs.Issues and PRs related to the TextEncoder and TextDecoder APIs.i18n-apiIssues and PRs related to Node.js internationalization support.Issues and PRs related to Node.js internationalization support.
The documentation for
buffer.transcodestates:However, the documentation does not specify which encodings are valid.
(I was trying to transcode a Buffer into a Buffer with the same bytes, base64 encoded. My goal was to replace the
+and/characters with-and_without needing to create an entirely new string or call.replace).