UrlEncode

From CometWiki

(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions not shown)
Line 2: Line 2:
Changes characters from plain text to characters acceptable for html...
Changes characters from plain text to characters acceptable for html...
 +
 +
A$ = URLencode(A$)
 +
<pre>
<pre>
-
     """    encodes to    "&amp;quot;" "      
+
     """    encodes to    "&amp;quot;"
 +
    "'"    encodes to    "&amp;apos;"     
     "<"    encodes to    "&amp;lt;"       
     "<"    encodes to    "&amp;lt;"       
     ">"    encodes to    "&amp;gt;"       
     ">"    encodes to    "&amp;gt;"       
     "&"    encodes to    "&amp;amp;"     
     "&"    encodes to    "&amp;amp;"     
-
     " "    encodes to    "+"  
+
     " "    encodes to    "+"
     ";"    encodes to    "%3B"         
     ";"    encodes to    "%3B"         
     "?"    encodes to    "%3F"         
     "?"    encodes to    "%3F"         

Latest revision as of 16:25, 16 June 2016

THIS FUNCTION HAS NOT BEEN IMPLEMENTED YET!!!!

Changes characters from plain text to characters acceptable for html...

A$ = URLencode(A$)


     """     encodes to     "&quot;"
     "'"     encodes to     "&apos;"      
     "<"     encodes to     "&lt;"      
     ">"     encodes to     "&gt;"      
     "&"     encodes to     "&amp;"     
     " "     encodes to     "+"
     ";"     encodes to     "%3B"        
     "?"     encodes to     "%3F"        
     "/"     encodes to     "%2F"        
     ":"     encodes to     "%3A"        
     "#"     encodes to     "%23"        
     "&"     encodes to     "%26"        
     "="     encodes to     "%3D"        
     "+"     encodes to     "%2B"        
     "$"     encodes to     "%24"        
     ","     encodes to     "%2C"        
     "%"     encodes to     "%25"        
     "<"     encodes to     "%3C"        
     ">"     encodes to     "%3E"        
     "~"     encodes to     "%7E"        
     "%"     encodes to     "%25"        
   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