LibIdn FFI ruby binding
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
LICENSE
README.md
Rakefile
idn_ffi.gemspec

README.md

#LibIdn FFI ruby binding

sudo apt-get install libidn11

Gemfile:

gem 'idn_ffi'
IDNFFI.to_ascii "топ-site.рф"
=> "xn---site-iyehw.xn--p1ai"

IDNFFI.to_unicode "xn---site-iyehw.xn--p1ai"
=> "топ-site.рф"