UrlDecode

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(better explanation)
Line 2: Line 2:
<pre>
<pre>
-
   "&amp;quot;"          decodes to """       
+
   "&amp;quot;"          decodes to """
 +
  "&amp;apos;"          decodes to "'"       
   "&amp;lt;"      decodes to "<"       
   "&amp;lt;"      decodes to "<"       
   "&amp;gt;"      decodes to ">"       
   "&amp;gt;"      decodes to ">"       

Revision as of 19:44, 4 June 2016

Changes characters which were encoded by the browser to their ascii equivalents...

  "&quot;"          decodes to """
  "&apos;"          decodes to "'"       
  "&lt;"  	    decodes to "<"      
  "&gt;"  	    decodes to ">"      
  "&amp;" 	    decodes to "&"      
  "&nbsp;"	    decodes to " "      
  "+"		    decodes to " "
  "%3B"             decodes to  ";"	
  "%3F"             decodes to  "?"	
  "%2F"             decodes to  "/"	
  "%3A"             decodes to  ":"	
  "%23"             decodes to  "#"	
  "%26"             decodes to  "&"	
  "%3D"             decodes to  "="	
  "%2B"             decodes to  "+"	
  "%24"             decodes to  "$"	
  "%2C"             decodes to  ","	
  "%20" or "+"      decodes to  "<space>"
  "%25"             decodes to  "%"
  "%3C"             decodes to  "<"
  "%3E"             decodes to  ">"
  "%7E"             decodes to  "~"
  "%25"             decodes to  "%"
   Note that because the <space> character is very commonly used, a special code ( the "+" sign) 
   has been reserved as its URL encoding.  
   Thus the string "A B" can be URL encoded as either "A%20B" or "A+B".

 

Personal tools