idnaToUnicode
fn
string idnaToUnicode(string asciiDomain) @safeConvert an ASCII domain containing Punycode labels to its Unicode form (IDNA ToUnicode subset). Labels that begin with xn-- are decoded; others are lowercased and returned as-is.
Parameters
asciiDomain | ASCII domain to convert. |
Returns
Unicode domain name.
Throws
Exception if decoding or length constraints fail.IDNA ToUnicode with options.
Parameters
asciiDomain | ASCII domain to convert. |
opt | IDNA options. |
Returns
Unicode domain name.
Throws
Exception if decoding, validation, or length constraints fail.