Internet Direct (Indy) Version 9.0.1 Beta
URLEncode
Converts a US-ASCII string to a URL-Encoded string.

function URLEncode(const ASrc: string): string;
Parameters
const ASrc: string
US-ASCII string to be encoded.

Returns
String - URL-encoded representation of the string.

Description
URLEncode is a String function that converts a US-ASCII string to its representation in the URL Encoding scheme.

URLEncode is based on the URL character encoding rules as described in the Internet Standards document Uniform Resource Locators (URL), RFC 1738 , by Tim Berners-Lee.

URLEncode performs special handling for characters deemed unsafe in the URL encoding scheme, and any graphical US-ASCII characters in the range 80-FF hexadecimal.

Use URLDecode to return a URL-encoded string to its US-ASCII representation.