URLEncode
Qubes 6.6 Encodes a string in URL-encoded format without string normalization
Syntax
URLEncode(value)
value = parameter value to encode
Remarks
Encodes the value in URL-encoded (or "percent-encoded") format, so it can be used as a URL parameter.
This function differs from EncodeURIComponent in that the value is not normalized to a string before encoding, which is noticeable when a dynamic list or a date is passed. For parameters of numeric or string type, the functions are equivalent. For instance with A1 value being 'a' then URLEncode(List(A1, 'b')) would be 'a%2Cb'.
Examples
= "//server/page?param1=val1¶m2=" + URLEncode("to to&/ti=ti") = //server/page?param1=val1¶m2=to%20to%26%2Fti%3Dti
To make a simple search form via Google, for example, just:
- place a text box in A1;
- place a URL button in A2;
- with the following URL button:
="https://www.google.fr/search?q=" + URLEncode(A1).