idnaToUnicode

fnstring idnaToUnicode(string asciiDomain) @safe

Convert 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

asciiDomainASCII domain to convert.

Returns

Unicode domain name.

Throws

Exception if decoding or length constraints fail.
fnstring idnaToUnicode(string asciiDomain, IdnaOptions opt) @safe

IDNA ToUnicode with options.

Parameters

asciiDomainASCII domain to convert.
optIDNA options.

Returns

Unicode domain name.

Throws

Exception if decoding, validation, or length constraints fail.