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
  • almost 9 years ago
  • November 8, 2015
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 00:07:23 GMT

Languages