Unicode URL turns into punycode upon website load

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Unicode URL turns into punycode upon website load

Post by voltrader »

I have an Internationalized Domain Name (IDN) pointing to my website. It resolves without problem when the native characters are entered into the URL, but upon website load, the URL is turned into punycode.

I'm using Firefox.

Is this an Apache configuration issue, a Name Server issue, or something else?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I would imagine it's a Firefox issue..
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

Hey Feyd

Here are a couple of examples. This won't work if you're using IE6. IDN will resolve correctly in IE7.

Hope you're using Firefox!

This URL displays properly and is not converted into punycode: http://情報処理試験.jp/

This URL is converted into punycode: http://.本格的占い.com/

Strange... I just noticed that when I mouse over the top URL, it displays as native characters, but when I mouse over the second URL it displays as punycode...
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

hmmm.. well.. on page it looks right, but the link, on rollover it's punycode.. :?

but first one works as it should.. dunno. I'll definitely call Firefox now though.
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

feyd wrote:hmmm.. well.. on page it looks right, but the link, on rollover it's punycode.. :?

but first one works as it should.. dunno. I'll definitely call Firefox now though.
Good stuff. Thanks.
Post Reply