URL encodes text (also known as percent-encoding).
TURL_ToURLEncoded ( switches ; text )
|switches||not used, reserved for future use. Leave blank or put "-Unused"|
|text||the text to encode|
Data type returned
Returns the URL Encoded text
Troi URL Plug-in 2.6
FileMaker Pro 16 to 19
Note that the text is first converted to UTF-8 bytes, which makes it possible for higher Unicode characters to be encoded too.
See also http://en.wikipedia.org/wiki/Percent-encoding.
TURL_ToURLEncoded ( "-Unused" ; "Hello World!" )
this will give as result: