GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing nodejs.org — String decoder | Node.js v26.13.1 Documentation Skip to content
String decoder#Source Code: lib/string_decoder.js Stability: 2 - Stable The
The following example shows the basic use of the
When a In the following example, the three UTF-8 encoded bytes of the European Euro
symbol (
Class: |
| Version | Changes |
|---|---|
| v8.0.0 | Each invalid character is now replaced by a single replacement character instead of one for each individual byte. |
buffer <string> | <Buffer> | <TypedArray> | <DataView> The bytes to decode.<string>Returns a decoded string, ensuring that any incomplete multibyte characters at
the end of the Buffer, or TypedArray, or DataView are omitted from the
returned string and stored in an internal buffer for the next call to
stringDecoder.write() or stringDecoder.end().