Forums / General Questions / Å in domain name

Å in domain name

Locked

Views: 952

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
29 Nov 2008, 8:46 PM
#1
abloodywar avatar

abloodywar

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Å in domain name

I'm using zen-cart on a site, which has Å in its domain name.
When I click on certain links on the site, the "Å" changes to "%e5".

How do I prevent this?

29 Nov 2008, 9:37 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Å in domain name

Do you literally mean the domain name? Or do you mean in the URL ...

Have you an URL we could perhaps peek at that is using this?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

30 Nov 2008, 4:09 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Å in domain name

If you add one more product to the Category for: Haklappar

Does that stop breaking?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Dec 2008, 2:39 PM
#5
abloodywar avatar

abloodywar

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: Å in domain name

Still need support with this.

7 Dec 2008, 3:17 PM
#6
abloodywar avatar

abloodywar

New Zenner

Join Date:
Nov 2008
Posts:
4
Plugin Contributions:
0

Re: Å in domain name

Why can't I delete a post?

7 Dec 2008, 7:35 PM
#7
wilt avatar

wilt

Oji-san

Join Date:
Jun 2003
Location:
Newcastle UK
Posts:
1,917
Plugin Contributions:
3

Re: Å in domain name

Hi,

The problem only happens when a header redirect occurs.
It looks like php's header('Location: domain_name') does not fully support Internationalised domain names.

ie if you write a small test script like.

<?php
$domain = 'http://busungarochsmåknytt.se';
header('Location: ' . $domain);

You will see that it does not work, and fails in the same way your site fails.

However if you convert your site name to an IDN punycode format
see http://idnaconv.phlymail.de/index.php

and use the result http://xn--busungarochsmknytt-hub.se in the script,

<?php
$domain = 'http://xn--busungarochsmknytt-hub.se';
header('Location: ' . $domain);

it does work.

I don't have any details currently of the algorithm used to convert to punycode, so can't be much more help at the moment.