SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Now available in Orange Tijmen's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1,469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    url with a in them

    I'm trying to figure out how to get éçaëü in the url without turning in into this after you click on it test.php?%E9%E7a%EB%FC.

    If you hover over the link in Firefox it looks like test.php?éçaëü, but once you click on it. It changes to test.php?%E9%E7a%EB%FC in the url bar. I did some searching on the forms and came accross several posts mentioning urlencode, but that doesn't make a difference.

    It must be possible to keep the éçaëü intact after you clicked on it. This page http://frontpage.fok.nl/nieuws/11971...-bonussen.html has a ë in the url.

    Any idea how they could have done that?
    Travel Photos on Flickr - Twitter

    Never give up. Never surrender

  2. #2
    SitePoint Guru Ruben K.'s Avatar
    Join Date
    Jun 2005
    Location
    Alkmaar, The Netherlands
    Posts
    693
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ...............Just put it as a non urlencoded character in a link?

  3. #3
    Now available in Orange Tijmen's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1,469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe I'm missing something here, but aren't the éçaëü just normal non urlencoded characters. I didn't use any special urlencoding over them. Just a plain link with those characters behind them. The browser is the one that converts the éçaëü to %E9%E7a%EB%FC in the url bar, but only after you have clicked on them. If you don't click the link they looks like normal characters in the link.
    Travel Photos on Flickr - Twitter

    Never give up. Never surrender

  4. #4
    Now available in Orange Tijmen's Avatar
    Join Date
    Jul 2004
    Location
    The Netherlands
    Posts
    1,469
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just found out that IE doesn't seem to break the url, the adres bar shows test.php?éçaëü instead of test.php?%E9%E7a%EB%FC which is what Firefox (3.5.3), Opera and Chrome do turn it into.

    Can this be some kind of system setting that screws it up? A friend of mine tested it as well in Firefox, and it works fine at his place.
    Travel Photos on Flickr - Twitter

    Never give up. Never surrender

  5. #5
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,875
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It would depend on the character encoding you are using for the browser. What that would default to would depend on the operating system but you should still be able to override the selection from the browser settings.

    What you can't do is to control it from the web page.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


Bookmarks

Posting Permissions

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