diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 8e1d1c325b6ca7..d483fe4033aced 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -2508,6 +2508,9 @@ encoding to another. Returns a new `Buffer` instance. Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if conversion from `fromEnc` to `toEnc` is not permitted. +Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, +`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. + The transcoding process will use substitution characters if a given byte sequence cannot be adequately represented in the target encoding. For instance: