Static variables

staticread onlyucs2:PunycodeUcs2

staticread onlyversion:String

The current Punycode.js version number.

Static methods

staticdecode(string:String):String

Converts a Punycode string of ASCII code points to a string of Unicode code points.

staticencode(string:String):String

Converts a string of Unicode code points to a Punycode string of ASCII code points.

statictoASCII(domain:String):String

Converts a Unicode string representing a domain name to Punycode.

Only the non-ASCII parts of the domain name will be converted, i.e. it doesn't matter if you call it with a domain that's already in ASCII.

statictoUnicode(domain:String):String

Converts a Punycode string representing a domain name to Unicode.

Only the Punycoded parts of the domain name will be converted, i.e. it doesn't matter if you call it on a string that has already been converted to Unicode.