We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d60da08 commit bc23dfeCopy full SHA for bc23dfe
doc/api/buffer.md
@@ -2162,6 +2162,8 @@ added: v0.1.90
2162
2163
Decodes `buf` to a string according to the specified character encoding in
2164
`encoding`. `start` and `end` may be passed to decode only a subset of `buf`.
2165
+If a byte sequence in the input is not valid in the given `encoding` then
2166
+it is replaced with the replacement character `U+FFFD`.
2167
2168
The maximum length of a string instance (in UTF-16 code units) is available
2169
as [`buffer.constants.MAX_STRING_LENGTH`][].
0 commit comments