A pure Erlang IDNA implementation
Erlang
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.travis.yml
Emakefile
License.txt
Makefile
README.md
test.escript

README.md

erlang-idna

A pure Erlang IDNA implementation.

Quick start

$ make
...
$ erl -pa ebin
...
1> inets:start(), idna:start(). % downloads UnicodeData.txt from unicode.org
...
2> Domain = xmerl_ucs:from_utf8("www.詹姆斯.com").
...
3> idna:to_ascii(Domain).
...

Useful references

RFC3490 (IDNA)

RFC3492 (Punycode)

addressable (Ruby URI implementation)

punycode4r (Ruby punycode implementation)

Unicode Character Database

UAX #15 (Unicode Normalization Forms)