/erlang-idna

Erlang IDNA lib

Primary LanguageErlangMIT LicenseMIT

erlang-idna

A pure Erlang IDNA implementation.

Usage

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 (IDNA)

RFC3492 (Punycode)

addressable (Ruby URI implementation)

punycode4r (Ruby punycode implementation)

Unicode Character Database

UAX #15 (Unicode Normalization Forms)