
The function block URL_ENCODE URL-encodes a string.
The function is suitable when a string is to be used within the query part of a URL, and you need a convenient way to pass variables to the next page.
The input defines the string to be encoded.
Returns a string at the output in which all non-alphanumeric characters except -_. are replaced by a percent sign (%) followed by two hexadecimal values and spaces are replaced by a plus (+). The encoding is done in the same way as data posted through a WWW form is encoded - this corresponds to the designation of the data type application/x-www-form-urlencoded. This designation differs from the encoding according to RFC 3986 (see function block RAW_URL_ENCODE) in that, for historical reasons, the space is encoded as a plus sign (+).