punyEncode

Converts an UTF string to a Punycode string.

S
punyEncode
(
S
)
(
S str
)
if (
isSomeString!S
)

Throws

PunycodeException if an internal error occured.

Examples

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

Meta