punyEncode

Converts an UTF string to a Punycode string.

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

Examples

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

Meta