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.


UrlEncode(1, 2)

Function Properties

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: