I’m having trouble converting to punycode…this just outputs “apple.com”
when I’m expecting
"xn--80ak6aa92e.com"
any suggestions?
<cfset text = "apple.com">
<cfset idn = createObject("java", "java.net.IDN").toASCII(text)>
<cfoutput>
<!--- expected result should be: xn--80ak6aa92e.com --->
<li>idn=<pre>#idn#</pre>
</cfoutput>