Question
puny code and IDN(International Domain Name)
quote:The code above is in http://www.dot.kr/test/google.cfm.
code in google.cfm
<cflocation url=' http://www.google.co.kr/search?q=#listFirst(cgi.server_name,'.')#' addToken='no'>
if you click the above link it will go to google search page with the keyword " www."
if you change the sub-domain "www" to another word, it will go to google search page with the keyword " another word."
You can test it with the links below.
http://book.dot.kr/test/google.cfm book
http://note.dot.kr/test/google.cfm[ note
http://adobe.dot.kr/test/google.cfm adobe
http://movie.dot.kr/test/google.cfm movie
http://coldfusion.dot.kr/test/google.cfm coldfusion
: :
http://e.dot.kr/test/google.cfm the alphabet e
The links above works fine as I expected.
when the sub-domain is English, it works fine like the links above.
But the sub-domain is non-English, it goes to google search page with the keyword in PUNY Code (xn-code).
For example,
The following link doesn't work correctly because the sub-domain is non-English.
http://é.dot.kr/test/google.cfm the alphabet é
If you click the link above, it will go to google search page with the keyword " xn--9ca" instead of " é"
" xn--9ca" is the PUNY Code (xn code) of the IDN(international domain name) " é."
I like to make it go to google search page with the IDN keyword instead of
the puny code keyword when a user enters IDN sub-domain.
(I like to make it go to google search page with the IDN keyword " é" instead of the puny code keyword " xn--9ca')
Any suggestion will be appreciated.