module SimpleIdn

Defined in:

simple_idn.cr

Constant Summary

VERSION = "0.3"

Class Method Summary

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"


[View source]
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"


[View source]