README.md
## erlang-idna
A pure Erlang IDNA implementation.
## Usage
```erlang
1> Domain = xmerl_ucs:from_utf8("www.詹姆斯.com").
...
2> idna:to_ascii(Domain).
...
```
> Note: to regenerate the datafile, run the following commandline:
>
> $ ./mkdata.sh
>
> Then recompile.
## Useful references
[RFC3490](http://www.ietf.org/rfc/rfc3490.txt) (IDNA)
[RFC3492](http://www.ietf.org/rfc/rfc3492.txt) (Punycode)
[addressable](http://github.com/sporkmonger/addressable) (Ruby URI implementation)
[punycode4r](http://raa.ruby-lang.org/project/punycode4r/) (Ruby punycode implementation)
[Unicode Character Database](http://www.unicode.org/Public/UNIDATA/UCD.html)
[UAX #15](http://www.unicode.org/reports/tr15/) (Unicode Normalization Forms)