Can I have special characters in URL names?

  • hygeiahealthcare
  • Newbie
  • Newbie
  • hygeiahealthcare
  • Posts: 10

Post 3+ Months Ago

I have recently created some new pages for a website which contains special Danish and German characters æ, ø and å.

The links to these pages work fine when I test offline but after I have uploaded the new pages and click the link it says the page cannot be found...?

Is this because I cannot use these special characters in the url name?

Does it have something to do with the server?

Or something else.......

Doea anybody out there know why my pages cannot be found?

The website is:

[url="http://www.hygeiabeauty.com/index_dk.html"]http://www.hygeiabeauty.com/index_dk.html[/url]

Here are some examples of pages that cannot be found:

http://www.hygeiabeauty.com/ansigtsløftning.html
http://www.hygeiabeauty.com/brystforstørrelse.html

Any advice will be highly appreciated.

Heine Schultz
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Netlyte
  • Graduate
  • Graduate
  • Netlyte
  • Posts: 179

Post 3+ Months Ago

You can but it might be limited, here's a page with a list of characters for url encoding that might clear it up:
http://www.w3schools.com/tags/ref_urlencode.asp

There's also a URL encoder that can encode that part of the url to:
http://www.hygeiabeauty.com/ansigtsl%F8ftning.html
http://www.hygeiabeauty.com/brystforst%F8rrelse.html -- This url works fine

The second url works but you might want to recheck the first link.

- Sam
  • crazzyDemon
  • Beginner
  • Beginner
  • User avatar
  • Posts: 55

Post 3+ Months Ago

hi you can try to use php functions like

PHP Code: [ Select ]
urlencode();
urldecode();
htmlentities();
rawurldecode();
rawurlencode();
 
  1. urlencode();
  2. urldecode();
  3. htmlentities();
  4. rawurldecode();
  5. rawurlencode();
  6.  


you can fing more inforations about this functions at PHP official site
http://php.net/
this page with URL Functions
http://www.php.net/manual/en/ref.url.php
  • harrysmith
  • Graduate
  • Graduate
  • harrysmith
  • Posts: 136
  • Loc: Leeds

Post 3+ Months Ago

Is there a specific reason for using such characters if they are harming you, if i would have been you then i would have renamed those pages and have made it SE friendly.......
  • pranoy123
  • Born
  • Born
  • pranoy123
  • Posts: 2

Post 3+ Months Ago

hygeiahealthcare wrote:
I have recently created some new pages for a website which contains special Danish and German characters æ, ø and å.

The links to these pages work fine when I test offline but after I have uploaded the new pages and click the link it says the page cannot be found...?

Is this because I cannot use these special characters in the url name?

Does it have something to do with the server?

Or something else.......

Doea anybody out there know why my pages cannot be found?

The website is:

[url="http://www.hygeiabeauty.com/index_dk.html"]http://www.hygeiabeauty.com/index_dk.html[/url]

Here are some examples of pages that cannot be found:

http://www.hygeiabeauty.com/ansigtsløftning.html
http://www.hygeiabeauty.com/brystforstørrelse.html

Any advice will be highly appreciated.

Heine Schultz



Hello Php Gurus,

This is Pranoy from Kolkata having the same problem as it is mentioned above.
Actually i need to create a directory dynamically with some special danish character like "Udemøbler". And the script automatically upload images into that newly created dir having name as for example "Udemøbler". The image uploading is correct. But when I need to show those images in a page --- this not yet coming and giving an error. The browser (both in IE7 & FF) can not parsed the special character.
probably.

The URL of the image is : http://in-furn.dk/shop/shopdata/Udemøbler/images/b25b89abca.jpg

I am in a huge trouble trying almost a day but no luck getting me. Any help will be heartily accepted.

Thanks,
pranoy
  • Inlinerider
  • Born
  • Born
  • Inlinerider
  • Posts: 1

Post 3+ Months Ago

Thanks, I was very helpful :)
  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

URLs can barley carry spaces they come accross as %20 so I would of thorght that any chars will come up as %'s but if its a real problem I would just have to say use the name Udemobler as apose to Udemøbler (Im assuming that the ø is close to the letter o)
If not then have a look at other website in that language and see what they do. If you look at the source code for say a Japanese website the code and the URS's are in English but the content is in Japanese.
EDIT
Just thought of something if you use Udemøbler in your URL how are people who don't have a ø on there keyboard going to get to your site?

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 63 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.