Skip to main content

4.5. "text/plain" 表单数据的 Charset 参数

4.5. The Charset Parameter for "text/plain" Form Data

🇬🇧 英文原文

In the case where form-data values use character sets other than ASCII, the value of the charset parameter to the Content-Type header field in the individual parts is used to establish the charset used.

For example:

Content-Disposition: form-data; name="field1"
Content-Type: text/plain;charset=UTF-8

...text encoded in UTF-8...

🇨🇳 中文翻译

在表单数据值使用 ASCII 以外的字符集的情况下,各个部分的 Content-Type 头字段的 charset 参数的值用于确定使用的字符集。

例如:

Content-Disposition: form-data; name="field1"
Content-Type: text/plain;charset=UTF-8

...以 UTF-8 编码的文本...