mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: add support encoding link on string_decoder.md
PR-URL: https://github.com/nodejs/node/pull/31911 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
ceca1c3a4f
commit
35bea0798e
1 file changed
+3
-1
@@ -49,7 +49,7 @@ console.log(decoder.end(Buffer.from([0xAC])));
|
||||
added: v0.1.99
|
||||
-->
|
||||
|
||||
* `encoding` {string} The character encoding the `StringDecoder` will use.
|
||||
* `encoding` {string} The character [encoding][] the `StringDecoder` will use.
|
||||
**Default:** `'utf8'`.
|
||||
|
||||
Creates a new `StringDecoder` instance.
|
||||
@@ -88,3 +88,5 @@ 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()`.
|
||||
|
||||
[encoding]: buffer.html#buffer_buffers_and_character_encodings
|
||||
Reference in new issue
Block a user