Content type and charset
02Type/subtype and parameters identify how recovered content should be interpreted.
Absent metadata has a specified historical default rather than arbitrary guessing.
Key idea: A charset parameter describes text character encoding.
Rules & examples
A charset parameter describes text character encoding.
- A charset parameter describes text character encoding.
- Missing Content-Type normally defaults to text/plain with charset US-ASCII under this specification.
- Unknown parameters and types have defined handling; do not execute arbitrary content merely because it is labeled.
Examples are illustrative. Consult the linked RFC and its errata for implementation details.
Sources
New to this? Start hereA quick picture + helpful background
The envelope and the letter do different jobs.
Mail transport moves a message between servers. The message format describes its contents. Authentication adds checks; it does not make every message safe.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.