module SimpleIdn
Defined in:
simple_idn.crConstant Summary
-
VERSION =
"0.3"
Class Method Summary
-
.to_ascii(domain : String)
Converts a UTF-8 unicode string to a punycode ACE string.
-
.to_unicode(domain : String)
Converts a punycode ACE string to a UTF-8 unicode string.
Class Method Detail
def self.to_ascii(domain : String)
#
Converts a UTF-8 unicode string to a punycode ACE string. == Example SimpleIdn.to_ascii("møllerriis.com") => "xn--mllerriis-l8a.com"
def self.to_unicode(domain : String)
#
Converts a punycode ACE string to a UTF-8 unicode string. == Example SimpleIdn.to_unicode("xn--mllerriis-l8a.com") => "møllerriis.com"