-
Notifications
You must be signed in to change notification settings - Fork 7.3k
doc update to encodings supported by fs.ReadStream setEncoding #2911
Comments
Mailing list thread: http://groups.google.com/group/nodejs/browse_thread/thread/ba9f57e1f45953ca This is really two issues:
The first one would be easy to fix were it not for the fact that @isaacs: re the second issue: what are the plans for the stream API? |
Currently, Because Refs: #1681. |
I think perhaps setEncoding should just be removed from the Stream doc, and added in the documentation of the various streams where it's actually used. A more thorough streams cleanup is planned for v0.9. A setEncoding method would be ok, perhaps using the string_decoder under the hood if necessary. |
Now that you're mentioning the rewrite -- in my opinion
|
Encoding is now mentioned in the streams docs as referring to valid buffer encodings. |
The docs at http://nodejs.org/docs/latest/api/stream.html#stream_stream_setencoding_encoding
say that the encoding "can be 'utf8', 'ascii', or 'base64'".
Add 'binary', 'hex' and 'ucs2' to the list.
The text was updated successfully, but these errors were encountered: