GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: list encodings supported by buffer.transcode · nodejs/node@ef8d0fc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • buffer.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2508,6 +2508,9 @@ encoding to another. Returns a new `Buffer` instance.
25082508
Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
25092509
conversion from `fromEnc` to `toEnc` is not permitted.
25102510

2511+
Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,
2512+
`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
2513+
25112514
The transcoding process will use substitution characters if a given byte
25122515
sequence cannot be adequately represented in the target encoding. For instance:
25132516

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.