| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 40d57b7 commit 8d8fef0
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -416,6 +416,10 @@ potentially mangled if you simply pulled the Buffers directly and | |||
| 416 | 416 | called [`buf.toString(encoding)`][] on them. If you want to read the data | |
| 417 | 417 | as strings, always use this method. | |
| 418 | 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 | + | ||
| 419 | 423 | ```js | |
| 420 | 424 | var readable = getReadableStreamSomehow(); | |
| 421 | 425 | readable.setEncoding('utf8'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments