PDA

View Full Version : Not passing "é" in URL



marco
06-20-2007, 06:18 AM
I had a script which worked fine until a few days ago. In a nutshell, it was passing registration values (e.g. "Enregistré", "Pré-enregistré", "Abandonné") via the URL (../value.php?status=Enregistré) to another page. Now, I only get "Enregistr", "Pr-enregistr" on the other page. In other words, it "eats" the characters with accents.
Thanks in advance!

charlesgan
06-20-2007, 07:40 AM
url should be using simple/basic ascii chars only.
in SEO point of view, its an advantage as well.

can the script be changed to basic ascii, for the querystring.

... if not, you need to check the charset thing in the webpages.
as this is not unicode, its a extended ascii code.

Pethens
06-20-2007, 10:52 AM
My scripts work with accented characters by encoding them. If your script is written in PHP, use the urlencode() function, and then use urldecode() on the other end.

felgall
06-20-2007, 11:51 AM
If you use JavaScript then you need encodeURI() and decodeURI() to do the same thing.