EncodeURL
Mon 01 January 2018Syntax
EncodeURL(URLString)
Description
Use the EncodeURL function to apply URL encoding rules, including escape characters, to the string specified by URLString . The method used to encode the URLString is the standard defined by W3C. This function returns a string that contains the encoded URL. All characters outside the Unicode Basic Latin block (U+0020 â U+007F) are encoded, with the exception of the characters in the table below which are not encoded as they may represent valid components of URL or protocol syntax. If you need to encode such characters, use the EncodeURLForQueryString function.
The following table lists the punctuation characters in the Unicode Basic Latin block that are not encoded by the URLEncode function.
Punctuation Character |
Description |
---|---|
Glyph |
Unicode Character Name |
! |
Exclamation mark |
# |
Number sign |
$ |
Dollar sign |
& |
Ampersand |
( |
Left parenthesis |
) |
Right parenthesis |
* |
Asterisk |
+ |
Plus sign |
, |
Coma |
- |
Hyphen, minus |
. |
Full stop, period |
/ |
Solidus, slash |
: |
Colon |
; |
Semi-colon |
= |
Equals sign |
? |
Question mark |
_ |
Underscore |
Parameters
Field or Control |
Definition |
---|---|
URLString |
Specify the string you want encoded. This parameter takes a string value. |
Returns
An encoded string.