glidna

Values

pub fn from_ascii(domain: String) -> Result(String, Nil)

Takes a internationalized domain name and returns the unicode decoded version following RFC 3490

Examples

from_ascii("www.xn--mnchen-3ya.com")
// -> Ok("www.münchen.com")
pub fn to_ascii(domain: String) -> Result(String, Nil)

Takes a domain and converts to a valid internationalized domain name following RFC 3490

Examples

to_ascii("www.münchen.com")
// -> Ok("www.xn--mnchen-3ya.com")
Search Document