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:
himself65 authored and Myles Borins committed 2020-03-11 14:21:10 -04:00
1 parent ceca1c3a4f
commit 35bea0798e
1 file changed
+3 -1
+3 -1
View File
@@ -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