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

OrdinalTypeDescription
1stringRequiredURL to encode
2BooleanIndicates 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: