Difference between revisions of "URL Encoding"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 1: Line 1:
{{Note|<br>When specifying a URL in code, any ''special characters'' (anything other than a letter or number) need to be ''encoded''. For example, a space character is encoded as <tt>%20</tt>.<br>
{{Note|<br>When specifying a URL in code, any ''special characters'' (anything other than a letter or number) need to be ''encoded''. For example, a space character is encoded as <tt>%20</tt>. (Browsers typically take care of encoding URLs entered into the address bar--that's why the URL displayed after you visit the page may differ somewhat from the one you entered.) <br>
''Learn more:''  
''Learn more:''  
:* [http://www.w3schools.com/tags/ref_urlencode.asp URL Encoding] in HTML
:* [http://www.w3schools.com/tags/ref_urlencode.asp URL Encoding] in HTML
:* [http://www.javascripter.net/faq/escape.htm Encode a URL] in JavaScript
:* [http://www.javascripter.net/faq/escape.htm Encode a URL] in JavaScript
:* [http://docs.oracle.com/javase/6/docs/api/java/net/URLEncoder.html URLEncoder] class for Java}}
:* [http://docs.oracle.com/javase/6/docs/api/java/net/URLEncoder.html URLEncoder] class for Java}}

Revision as of 22:30, 1 February 2012

Notepad.png

Note:
When specifying a URL in code, any special characters (anything other than a letter or number) need to be encoded. For example, a space character is encoded as %20. (Browsers typically take care of encoding URLs entered into the address bar--that's why the URL displayed after you visit the page may differ somewhat from the one you entered.)
Learn more: