![]() |
TURL_ToURLEncoded |
URL encodes text (also known as percent-encoding).
Syntax
TURL_ToURLEncoded ( switches ; text )
Parameters
switches | not used, reserved for future use. Leave blank or put "-Unused" |
text | the text to encode |
Returned Result
Data type returned
text
Result
Returns the URL Encoded text
Originated in
Troi URL Plug-in 2.6
Compatibility
FileMaker Pro 16 to 19
Considerations
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.
Example
TURL_ToURLEncoded ( "-Unused" ; "Hello World!" )
this will give as result:
“Hello%20World%21”
Related function
TURL_ToHTTP |
Related topics
Troi URL Plug-in online help (overview)