punyDecode

Converts a Punycode string to an UTF string.

S
punyDecode
(
S
)
(
in S str
)
if (
isSomeString!S
)

Throws

PunycodeException if an internal error occured.

InvalidPunycodeException if an invalid Punycode string was passed.

Examples

assert(punyDecode("maana-pta") == "mañana");

Meta