Converting punycode with dash character to Unicode
I took the time to create the punycode below. It it based on the C code in RFC 3492. To use it with domain names you have to remove/add xn-- from/to the input/output to/from decode/encode. The utf16-class is necessary to convert from JavaScripts internal character representation to unicode and back. There are also ToASCII and … Read more