Saturday, April 28, 2012

HTML Advanced tutorial 25 : HTML URL Encoding

URL encoding converts characters into a format that can be transmitted over the Internet. Web browsers request pages from web servers by using a URL. The URL is the address of a web page, e.g http://www.yoursite.com.

URLs can only be sent over the Internet using the ASCII character-set. Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format. URL encoding replaces non ASCII characters with a "%" followed by two hexadecimal digits. URLs cannot contain spaces. URL encoding normally replaces a space with a + sign.

URL Encoding Examples

Character            URL-encoding
€                           %80
£                           %A3
©                          %A9
®                          %AE
À                          %C0
Á                          %C1
                          %C2
à                          %C3
Ä                          %C4
Å                          %C5


HTML Advanced tutorial 26 : HTTP Status Messages  >>
<<  HTML Advanced tutorial 24 : HTML URL

No comments:

Post a Comment