encode_uri_component

encode_uri_component(str: string) -> string

Replace certain characters in a string with %-encoded escape sequences.

Letters A-Z a-z, digits 0-9, and !'()*-. remain unchanged. All others are encoded. NULL if input contains an invalid UTF-8 surrogate sequence.

See also encode_uri, encode_base64.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col ec:encode_uri_component('2^3 = 8;')

The result of encoding the string is '2%5E3%20%3D%208%3B', which is different from encode_uri.