Syntax
URLEncode <text>Description
Encode a string for inclusion in a URI according to RFC2396.Parameters
<text>
- The text to be encoded.
Remarks
URL Encoding replaces unsafe ASCII characters with "%" followed by their hex equivalent. Safe characters are defined in RFC2396. They are the 7-bit ASCII alphanumerics and the mark characters "-_.!~*'()".Note that when encoding form parameters for transmission to a webserver, spaces are generally replaced with plus signs (+) before URL encoding. Form parameters are name=value pairs separated by ampersands (&). Example: action=update&id=23&text=this+is+a+test. See also URLDecode
Example
encoded = URLEncode "Encode this text." After execution of the above statement, encoded contains the string "Encode%20this%20text%20%3ctag%3e."