Convert to punycode

I’m having trouble converting to punycode…this just outputs “
when I’m expecting


any suggestions?

<cfset text = "">
<cfset idn = createObject("java", "").toASCII(text)>

<!--- expected result should be: --->

EDIT: Sorry, I was misunderstanding the problem, punycode expects CYRILLIC chrs like greek or russian which my example is not using - which is why it appears not to work.

1 Like