--- title: "连接器输入编码控制 " slug: "connector-input-encoding-control" updated: 2025-05-27T15:05:08Z published: 2025-05-27T15:05:08Z canonical: "support.tulip.co/connector-input-encoding-control" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 连接器输入编码控制 ## 概述 在将信息传递给其他系统时,您可能需要额外控制这些 Inputs 的编码方式,然后再将信息传递给其他系统。默认情况下,Tulip 会尝试使用最常用的编码方法,但您也可以覆盖该方法,以更好地满足您的需求。 您的应用程序构建程序将继续使用标准的 Tulip 变量,连接器配置将修改其输入,以满足您的集成需求。 ## 如何 允许自定义编码的输入将在每个输入旁边显示一个编码丸。点击后,您可以选择编码选项。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28240%29.png) ## 编码选项 - 文本输入 ### 自动编码 字符将根据使用位置转义。 在 URL 路径中:路径编码在查询中:查询编码在 Header 中:正文中:无编码无编码 ### 无编码 不会转义任何字符。 如果通过以下字符以外的任何字符,可能会导致错误`:A-Z a-z 0-9 - _ .!~ * ' ( )".` ### 路径编码 除以下字符外,所有字符都将被转义`:A-Z a-z 0-9 ; , / ?@ & = + $ - _ .!~ * ' ( ) #` ### 查询编码 除以下字符外,所有字符都将转义`:A-Z a-z 0-9 - _ .!~ * ' ( )` ### Base64 编码 文本将使用 Base64 编码。 ## 编码选项 - 图片输入 Note Custom image encoding functionality is actively being rolled out. Reach out to support@tulip.co if you would like it enabled. 存储在 Tulip 中的图片存储在我们的云存储服务中,这些图片的引用会在您的应用程序和 Tulip 表中动态生成。这些引用每 3 小时过期一次。在将这些图像传递给外部系统时,您可能希望将它们编码为另一种格式,这样它们就不会过期。 点击任何输入的编码丸,就可以配置其编码。 ### 图像 URL 编码 默认情况下,连接程序的图片输入将以签名 URL 的形式传递到相应图片。该输入可用于连接器中任何可使用文本输入的地方。![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28376%29.png) ### Base64 编码 [Base64](https://www.writesoftwarewell.com/base64-encoding-explained/#:~:text=In%20its%20essence%2C%20Base64%20encoding,to%20prevent%20against%20data%20corruption.&text=As%20there%20are%20only%2064,represents%206%20bits%20of%20data.)是二进制数据编码的最简单标准之一,也是通过 http 调用传输小文件的常用标准。选择 Base64 时,任何图像输入在发送到外部服务前都会自动编码为 base64。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28377%29.png) ### 文件编码 Multipart/form-data 是另一种非常常见的二进制数据传递格式。这在较大的文件中更为常见。单击 "文件 "选项可更改该输入的编码。这将自动把输入移到 "文件 "输入部分。这些输入不能在有效载荷正文之外使用。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28378%29.png) 该数据类型未编码为文本,因此不能在 json 有效载荷中使用。相反,"文件 "部分将被添加到请求正文部分。文件可在此处添加或删除。 ![image.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/image%28379%29.png) ## 编码选项 - 日期输入编码选项 ### 计时秒数 自 1970 年 1 月 1 日协调世界时(UTC)00:00:00 的 Unix 纪元起经过的秒数。 ### 纪元毫秒数 自 1970 年 1 月 1 日(协调世界时 00:00:00)Unix 时间起经过的毫秒数。 ### ISO 8601 RFC 3339 标准格式:YYYY-MM-DDTHH:mm:ssZ 。用 "Z "表示 UTC。 ## 更多阅读 - [郁金香连接器主机简介](/r230/docs/introduction-to-tulip-connector-hosts) - [连接器快照](/r230/docs/connector-snapshotting) - [连接器故障排除](/r230/docs/troubleshooting-connectors) **Input** An **input** is transmission of data from a data set to a program. **Header** **Headers** represent the meta-data associated with the API **request** and **response**. They are an extra source of information for each **API call** you make and should be the first source to inspect when you encounter issues with an API to help troubleshoot issues.