4.6. デフォルト文字セットの_charset_フィールド
4.6. The charset Field for Default Charset
🇬🇧 英文原文
Some form-processing applications (including HTML) have the convention that the value of a form entry with entry name "charset" and type "hidden" is automatically set when the form is opened; the value is used as the default charset of text field values (see form-charset in Section 5.1.2). In such cases, the value of the default charset for each "text/plain" part without a charset parameter is the supplied value. For example:
--AaB03x
content-disposition: form-data; name="_charset_"
iso-8859-1
--AaB03x
content-disposition: form-data; name="field1"
...text encoded in iso-8859-1 ...
--AaB03x--
🇯🇵 日本語訳
一部のフォーム処理アプリケーション(HTMLを含む)には、エントリ名が「charset」でタイプが「hidden」のフォームエントリの値が、フォームが開かれたときに自動的に設定されるという規約がある。この値は、テキストフィールド値のデフォルト文字セットとして使用される(セクション5.1.2のform-charsetを参照)。このような場合、charsetパラメータのない各「text/plain」パートのデフォルト文字セットの値は、提供された値となる。例:
--AaB03x
content-disposition: form-data; name="_charset_"
iso-8859-1
--AaB03x
content-disposition: form-data; name="field1"
...text encoded in iso-8859-1 ...
--AaB03x--