show / hide menu

URLEncode

Description

The URLEncode function is employed to encode a given value using the URL encoding scheme. It converts characters in the input string into their corresponding percent-encoded representations, ensuring compatibility with URLs and preventing misinterpretation of special characters.

Syntax:

URLEncode(Value)

  • Value: The string to be encoded to UTF-8.

Example:

URLEncode(“http://www.google.com?id=334&od=test”) -> “http%3a%2f%2fwww.google.com%3fid%3d334%26od%3dtest “

This example encodes the URL “http://www.google.com?id=334&od=test” using the URLEncode function, resulting in the percent-encoded URL suitable for use in web applications.

Figure9: Rule

Figure10: Preview

Usage:

The URLEncode function is utilized to prepare strings for inclusion in URLs by replacing special characters with percent-encoded equivalents. It ensures proper formatting and prevents errors or misinterpretation of characters when interacting with web services or transmitting data.