> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# URL编码

## 指令说明

**描述：** 编码URL，方式为百分号编码

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/urlencodecommand-01.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=94e59b002ed9123a58c553830dace0df" alt="URL编码指令参数面板" width="648" height="344" data-path="helpcenter/commands/data-processing/images/urlencodecommand-01.png" />

    | 参数          | 说明        |
    | ----------- | --------- |
    | **待编码的URL** | 输入待编码的URL |
    | **生成变量**    | 生成已编码的URL |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/urlencodecommand-02.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=5ad62d122a753fb67322bd1157cb70cc" alt="URL编码使用示例 - 流程搭建" width="852" height="149" data-path="helpcenter/commands/data-processing/images/urlencodecommand-02.png" />

**该流程执行逻辑：**

编码前的网址：[https://www.bazhuayu.com/?extcode=gw-sk-yl-no-no-no](https://www.bazhuayu.com/?extcode=gw-sk-yl-no-no-no)

编码后的网址：https%3a%2f%2fwww\.bazhuayu.com%2f%3fextcode%3dgw-sk-yl-no-no-no

使用【URL编码】命令百分号编码网址，结果保存到编码URL

使用【打印日志】打印编码URL消息日志

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/urlencodecommand-03.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=12d36e08e310169676409b0b0cdb136d" alt="URL编码使用示例 - 效果展示" width="836" height="218" data-path="helpcenter/commands/data-processing/images/urlencodecommand-03.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
