GetAsURLEncoded
Returns text as URL (Uniform Resource Locator) encoding, for use as a URL.
Format
GetAsURLEncoded ( text )
Parameters
text
- any text expression or text field
Data type returned
text
Originated in version
8.5
Description
This function removes all styles from text
. All characters are first converted to UTF-8 format. Most characters that are not permitted in URLs are converted to %HH format (a percent sign followed by the character’s hexadecimal value). The following reserved characters are not converted:
: - _ . ! ~ * ' ( )
See www.w3.org for more information on URL encoding.
Example 1
GetAsURLEncoded("Hello")
returns Hello.
GetAsURLEncoded("San Francisco")
returns San%20Francisco.
GetAsURLEncoded("français")
returns fran%c3%a7ais.