Results 1 to 4 of 4

Thread: Not passing "é" in URL

  1. #1
    Join Date
    May 2007
    Posts
    5

    Default Not passing "é" in URL

    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!

  2. #2
    Join Date
    Feb 2007
    Location
    http://www.bluehostreview.org
    Posts
    1,131

    Default

    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.
    Charles Gan
    www.bluehostreview.org : Bluehost reviews hosted at bluehost

  3. #3
    Join Date
    Oct 2006
    Posts
    358

    Default

    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.

  4. #4
    Join Date
    Nov 2006
    Location
    Sydney, Australia
    Posts
    4,951

    Default

    If you use JavaScript then you need encodeURI() and decodeURI() to do the same thing.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •