diff options
author | himself65 <himself65@outlook.com> | 2020-02-22 13:00:28 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-03-11 19:06:13 +0300 |
commit | ce8f5eee8ec2253a13a47a9055ae67f407ac2767 (patch) | |
tree | 189efdd49481a092ba8c0bd1014436c55ec5db36 /doc/api | |
parent | 8790db61054541ef8dc975bd6f6304ec67845c7b (diff) |
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>
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/string_decoder.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index 29defb71747..54fcc876c9a 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -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 |