跳转至

Url encode(URL 编码(Url encode))

Supported in: Batch, Faster, Streaming

Percent-encodes a string to be sent in a url.

Expression categories: String

Declared arguments

  • Expression: The expression to url encode.
    Expression\

Output type: String

Examples

Example 1: Base case

Argument values:

  • Expression: string
string Output
raw_string_with_no_special_characters raw_string_with_no_special_characters
test/api?string=3 test%2Fapi%3Fstring%3D3

Example 2: Null case

Argument values:

  • Expression: null

Output: null



中文翻译

URL 编码(Url encode)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

对字符串进行百分号编码(Percent-encoding),以便在 URL 中发送。

表达式类别: 字符串(String)

声明的参数

  • 表达式(Expression): 需要进行 URL 编码的表达式。
    表达式\

输出类型: String

示例

示例 1:基本情况

参数值:

  • 表达式: string
string 输出
raw_string_with_no_special_characters raw_string_with_no_special_characters
test/api?string=3 test%2Fapi%3Fstring%3D3

示例 2:空值情况

参数值:

  • 表达式: null

输出: null