Stay organized with collections
Save and categorize content based on your preferences.
Returns a string with percent-encoded reserved characters, including spaces.
The reserved characters in the original string are replaced with their
percent-escaped representation (%xx). Letters, digits, and the characters
.-_ are not escaped.
Arguments
Arguments
source
string
The string that will be converted.
Returns
A percent-encoded copy of the source string.
Raised exceptions
Exceptions
TypeError
If source is not a string.
Examples
# Return string with percent-encoded reserved characters# Returns "a%2Fb%2Fc%3Fitem%3Dd%2Be%20f"-returnStep:return:${text.url_encode("a/b/c?item=d+e f")}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Function: text.url_encode\n\nReturns a string with percent-encoded reserved characters, including spaces.\n\nThe reserved characters in the original string are replaced with their\npercent-escaped representation (`%xx`). Letters, digits, and the characters\n`.-_` are not escaped.\n\nArguments\n---------\n\nReturns\n-------\n\nA percent-encoded copy of the `source` string.\n\nRaised exceptions\n-----------------\n\nExamples\n--------\n\n```yaml\n# Return string with percent-encoded reserved characters\n# Returns \"a%2Fb%2Fc%3Fitem%3Dd%2Be%20f\"\n- returnStep:\n return: ${text.url_encode(\"a/b/c?item=d+e f\")}\n```"]]