Functions

urlEncode

Supported By

Syntax

[the] urlEncode of factor

urlEncode ( expression )

Factor and expression yield strings.

Description

The urlEncode function encodes non-alphabetic characters (other than hyphen, underscore, and period), control characters, and non-ASCII characters in the specified string as a percent sign followed by two hexadecimal digits, and spaces in the specified string as plus signs, and returns the encoded string. The string is encoded in the same way that posted data from an HTML form is encoded.

The encoding for non-ASCII characters is determined by the text encoding specified by the textEncoding property.

See Also

urlDecode, htmlEncode, htmlDecode