Zum Hauptinhalt springen

4.5. Der Charset-Parameter für "text/plain"-Formulardaten

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

🇬🇧 Englischer Originaltext

In the case where the form data is text, the charset parameter for the "text/plain" Content-Type MAY be used to indicate the character encoding used in that part. For example:

--AaB03x
content-disposition: form-data; name="field1"
content-type: text/plain;charset=UTF-8

Joe owes €100.
--AaB03x

In practice, many widely deployed implementations do not supply a charset parameter in each part, but rather, they rely on the notion of a "default charset" for a multipart/form-data instance.


🇩🇪 Deutsche Übersetzung

Wenn die Formulardaten Text sind, KANN der charset-Parameter für den „text/plain"-Content-Type verwendet werden, um die in diesem Teil verwendete Zeichencodierung anzuzeigen. Zum Beispiel:

--AaB03x
content-disposition: form-data; name="field1"
content-type: text/plain;charset=UTF-8

Joe owes €100.
--AaB03x

In der Praxis stellen viele weit verbreitete Implementierungen keinen charset-Parameter in jedem Teil bereit, sondern verlassen sich auf die Vorstellung eines „Standard-Zeichensatzes" für eine multipart/form-data-Instanz.