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?
Views: 952
New Zenner
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?
Oba-san
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 ...
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!
New Zenner
In the domain name.
http://www.busungarochsmåknytt.se
Oba-san
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 ...
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!
New Zenner
Still need support with this.
New Zenner
Why can't I delete a post?
Oji-san
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.
Tell staff why this post should be reviewed.