EncodeURIComponent
Qubes 9.0 Encodes a string in URI-encoded format with string normalization.
Syntax
EncodeURIComponent(value)
Remarks
This function encodes a Uniform Resource Identifier (URI) component by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character as described in URL-encoded.
This makes a string suitable to be passed as a query parameter to an HttpRequest.
This function differs from URLEncode in that the value parameter is 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 EncodeURIComponent(List(A1, 'b')) would be '%7B%20%22a%22%2C%22b%22%20%7D'.
Examples
"https://server/api?param=" & EncodeURIComponent("a b") = "https://server/api?param=a%20b"