External links
LibIdn crystal binding.
Add this to your application's shard.yml:
shard.yml
dependencies: idn: github: kostya/idn
require "idn" p Idn.to_ascii "топ-site.рф" # "xn---site-iyehw.xn--p1ai" p Idn.to_unicode "xn---site-iyehw.xn--p1ai" # "топ-site.рф"
idn
MIT License
Sun, 24 Nov 2024 10:42:14 GMT