Friday, January 28, 2011

How do I add a "é" to my url

Hello,

Look at this link

http://fr.wikipedia.org/wiki/Test_de_paternit%C3%A9

Now back to this post

The link is now: fr.wikipedia.org/wiki/Test_de_paternité

How do I make this happen for my site?

Im on a apache.

  • RFC3986 (specifically section 2.3) states that you can't have accented characters in a valid url.

    Alexandre H. Tremblay : Well you don't use special chars, you use %C3%A9 which are all valid and things like that to get around it. There are thousands of site doing it and google indexes the url properly.
    From Chopper3
  • It is being done by the browser, not by the website.

    In firefox you can turn it off, read more about this at the network.standard-url.encode-utf8 documentation. It also has a reference to RFC3987 which requires browsers to do this properly. Apparently IE and Opera and not doing it properly, unless they have been fixed since the Mozillazine article was written.

    So the bottom line is: when you write %C3%A9 in your browser address bar, the browser will turn it into utf-8 characters.

    From Evgeny

0 comments:

Post a Comment