mirror of https://github.com/nodejs/node.git
Edit binary encoding docs
parent
8825c74e7a
commit
0499618c2b
|
@ -57,11 +57,12 @@ Binary (`'binary'`).
|
||||||
|
|
||||||
* `'ascii'` - for 7 bit ASCII data only. This encoding method is very fast, and will
|
* `'ascii'` - for 7 bit ASCII data only. This encoding method is very fast, and will
|
||||||
strip the high bit if set.
|
strip the high bit if set.
|
||||||
|
|
||||||
* `'binary'` - for 8 bit binary data such as images.
|
|
||||||
|
|
||||||
* `'utf8'` - Unicode characters. Many web pages and other document formats use UTF-8.
|
* `'utf8'` - Unicode characters. Many web pages and other document formats use UTF-8.
|
||||||
|
|
||||||
|
* `'binary'` - A legacy encoding. Used to store raw binary data in a string
|
||||||
|
by only using the first 8 bits of every character. Don't use this.
|
||||||
|
|
||||||
|
|
||||||
### new Buffer(size)
|
### new Buffer(size)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue