Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noblesamurai/erlang-idna
A pure Erlang IDNA implementation
https://github.com/noblesamurai/erlang-idna
Last synced: about 1 month ago
JSON representation
A pure Erlang IDNA implementation
- Host: GitHub
- URL: https://github.com/noblesamurai/erlang-idna
- Owner: noblesamurai
- License: mit
- Created: 2011-07-12T02:17:54.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-11-03T02:25:58.000Z (about 13 years ago)
- Last Synced: 2023-03-11T05:29:45.338Z (almost 2 years ago)
- Language: Erlang
- Homepage:
- Size: 103 KB
- Stars: 1
- Watchers: 1
- Forks: 45
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: License.txt
Awesome Lists containing this project
README
A pure Erlang IDNA implementation.
An attempt will be made to read from priv/UnicodeData.txt. If the file does not exist,
it is downloaded from unicode.org, and an attempt is made to save it to the above filename,
though no checking is done as to whether or not this succeeded.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).
...Reference material:
RFC3490 (IDNA)
http://www.ietf.org/rfc/rfc3490.txtRFC3492 (Punycode)
http://www.ietf.org/rfc/rfc3492.txtaddressable (Ruby URI implementation)
http://github.com/sporkmonger/addressablepunycode4r (Ruby punycode implementation)
http://raa.ruby-lang.org/project/punycode4r/Unicode Character Database
http://www.unicode.org/Public/UNIDATA/UCD.htmlUAX #15 (Unicode Normalization Forms)
http://www.unicode.org/reports/tr15/