Initial
This commit is contained in:
commit
45627ad72b
4 changed files with 113 additions and 0 deletions
26
readme.md
Normal file
26
readme.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
Node Utf-8 Encoding/Decoding Functions
|
||||
==============================================================================
|
||||
This is a port of the work done by Chris Veness over the past ten years in relation
|
||||
to encoding and decoding Utf-8 data in a JavaScript environment. I didn't write the core
|
||||
of this, merely modified it to work with Node's package structure and be published on npm, where
|
||||
people can by and large get used to it and stop being confused about this issue. ;P
|
||||
|
||||
|
||||
Installation
|
||||
------------------------------------------------------------------------------
|
||||
npm install utf8
|
||||
|
||||
|
||||
Usage
|
||||
-------------------------------------------------------------------------------
|
||||
``` javascript
|
||||
var utf8 = require('utf8');
|
||||
|
||||
var c = utf8.encode("私は")
|
||||
utf8.decode(c);
|
||||
```
|
||||
|
||||
|
||||
Questions, Comments?
|
||||
--------------------------------------------------------------------------------
|
||||
**[@ryanmcgrath](http://twitter.com/ryanmcgrath/)**
|
||||
Reference in a new issue