Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Doc improvements
Browse files Browse the repository at this point in the history
Fixes #297.
  • Loading branch information
koichik committed Jul 13, 2011
1 parent 6bcd96c commit d05afa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/api/buffers.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ method. Here are the different string encodings;

* `'ascii'` - for 7 bit ASCII data only. This encoding method is very fast, and will
strip the high bit if set.
Note that this encoding converts a null character (`'\0'` or `'\u0000'`) into
`0x20` (character code of a space). If you want to convert a null character
into `0x00`, you should use `'utf8'`.

* `'utf8'` - Multi byte encoded Unicode characters. Many web pages and other document formats use UTF-8.

Expand Down

0 comments on commit d05afa5

Please sign in to comment.