We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1124de2 commit 174fec5Copy full SHA for 174fec5
doc/api/stream.markdown
@@ -416,6 +416,10 @@ potentially mangled if you simply pulled the Buffers directly and
416
called [`buf.toString(encoding)`][] on them. If you want to read the data
417
as strings, always use this method.
418
419
+Also you can disable any encoding at all with `readable.setEncoding(null)`.
420
+This approach is very useful if you deal with binary data or with large
421
+multi-byte strings spread out over multiple chunks.
422
+
423
```js
424
var readable = getReadableStreamSomehow();
425
readable.setEncoding('utf8');
0 commit comments