Skip to content
/ idna Public
forked from superbobry/idna

A pure Erlang IDNA implementation.

License

Notifications You must be signed in to change notification settings

helllamer/idna

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idna

Punycode (and IDNA) implementation for Erlang.

Quick start:

Start with the usual rebar boilerplate:

$ rebar get-deps compile
==> ux (compile)
==> erlang-idna (compile)
Compiled src/punycode.erl
Compiled src/idna.erl

Now, it's time for some action!

$ erl -pa ebin deps/*/ebin
1> Domain = xmerl_ucs:from_utf8("президент.рф").
[1087,1088,1077,1079,1080,1076,1077,1085,1090,46,1088,1092]
2> idna:to_ascii(Domain).
"xn--d1abbgf6aiiy.xn--p1ai"
3> idna:from_ascii("xn--d1abbgf6aiiy.xn--p1ai").
[1087,1088,1077,1079,1080,1076,1077,1085,1090,46,1088,1092]

Reference material:

About

A pure Erlang IDNA implementation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 100.0%