https://github.com/benoitc/erlang-idna-nif
https://github.com/benoitc/erlang-idna-nif
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/benoitc/erlang-idna-nif
- Owner: benoitc
- Created: 2014-03-25T14:30:35.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-26T16:34:00.000Z (almost 12 years ago)
- Last Synced: 2025-03-17T11:52:31.044Z (12 months ago)
- Language: C
- Size: 754 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# idna-erlang
idna implements IDNA2008 (Internationalized Domain Names for
Applications), defined in RFC 5890, RFC 5891, RFC 5892, RFC 5893 and RFC
5894.
The current implementation provides a nif binding the [ICU
IDNA](http://icu-project.org/apiref/icu4c/uidna_8h.html) api.
## Usage
1> A = idna:to_ascii(<<"www.詹姆斯.com"/utf8>>).
<<"www.xn--8ws00zhy3a.com">>
2> idna:to_unicode(A).
<<"www.詹姆斯.com"/utf8>>