URL_ENCODE

Converts any URL-unsafe characters in the given text with form or uri encoding. Specify encoding: "uri" to use URI encoding, default encoding is form.

Syntax 

URL_ENCODE(text, [encoding: "form"])

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"message": "alice@example.com"
4
}
5
}

Formula

URL_ENCODE(my_action.message)

Output

"alice%40example.com"

Example 2

Space characters are turned into + characters instead of being percent encoded:

Input

1
{
2
"my_action": {
3
"message": "hello world"
4
}
5
}

Formula

URL_ENCODE(my_action.message)

Output

"hello+world"

Example 3

% encoding can be enabled via encoding: "uri":

Input

1
{
2
"my_action": {
3
"message": "hello world"
4
}
5
}

Formula

URL_ENCODE(my_action.message, encoding: "uri")

Output

"hello%20world"
Was this helpful?