idn

LibIdn crystal binding.

Idn

LibIdn crystal binding.

Installation

Add this to your application's shard.yml:

dependencies:
  idn:
    github: kostya/idn

Usage

require "idn"

p Idn.to_ascii "топ-site.рф"
# "xn---site-iyehw.xn--p1ai"

p Idn.to_unicode "xn---site-iyehw.xn--p1ai"
# "топ-site.рф"
Repository

idn

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • about 9 years ago
  • November 8, 2015
License

MIT License

Links
Synced at

Sun, 24 Nov 2024 10:42:14 GMT

Languages