special characters in url?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

special characters in url?

Postby CheatCat » 28. December 2008 22:59

There is anyway to enable usage of special characters (like åäö) in the url? If I have a file called "Gästbok.php" and try to open it on Internet Explorer I get errors... :(
CheatCat
 
Posts: 2
Joined: 28. December 2008 22:55

Re: special characters in url?

Postby Nobbie » 29. December 2008 00:26

Special characters in URLs have to be "url encoded" before passed to the browser. See http://www.w3schools.com/TAGS/ref_urlencode.asp for example and test.

BUT: it is anyway a very very bad idea to call a script (or file) "Gästbook", as it is impossible to determine which character set is used on the webservers file system (utf8, latin etc.). Due to that problem a HTTP Request for a filename including such special chars may fail anyway, even if the URL seems to be encoded correctly.

Therefore you really *should* rename your script to "guestbook.php" or "gastbok.php" or similar. Otherwise some browswer will successfully open and others will fail to open that file. The behaviour is unpredictable.
Nobbie
 
Posts: 13175
Joined: 09. March 2008 13:04

Re: special characters in url?

Postby CheatCat » 29. December 2008 13:14

Okey, I should change the filename. Thanks! :)
CheatCat
 
Posts: 2
Joined: 28. December 2008 22:55


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 232 guests

cron