urlEncode

Encodes a string.

Syntax

urlEncode(string)

Parameters

string

Specifies the string to be encoded (its value is not modified).

Returns

Returns the URL-encoded version of the string.

Remarks

urlEncode is useful for passing data on a URL. Characters that are not valid in a URL are encoded. Spaces are replaced with '+', special characters are escaped with %nn.