UrlEncode
Encode any spaces contained in a URL. By default, this function encodes spaces as %20. If you set the optional Boolean tag to true, the function returns all spaces as a + character.
Syntax
UrlEncode(1, 2)
Function Properties
Ordinal | Type | Description | |
---|---|---|---|
1 | string | Required | URL to encode |
2 | Boolean | Indicates whether to encode spaces as a + character. A value of true encodes spaces, and a value of false does not encode spaces. |
The system returns these values: