Skip to content
Advertisement

Tag: punycode

Converting punycode with dash character to Unicode

I need to convert the punycode NIATO-OTABD to nñiñatoñ. I found a text converter in JavaScript the other day, but the punycode conversion doesn’t work if there’s a dash in the middle. Any suggestion to fix the “dash” issue? Answer I took the time to create the punycode below. It it based on the C code in RFC 3492. To

Advertisement