Visual RFC.
ALL RFCs / RFC 2045
Read the RFC ↗
RFC 2045 / MECHANISM GUIDE

Content type and charset

02

Type/subtype and parameters identify how recovered content should be interpreted.

RFC 2045 · § 5.1EXAMPLE
3 / 3
03
Keep defaults explicit

Absent metadata has a specified historical default rather than arbitrary guessing.

Content type and charsetType/subtype and parameters identify how recovered content should be interpreted.Content type and charsetContent-Type: text/plain; charset=utf-8interpret recovered bytestext + UTF-8 character decodingHistorical default: text/plain; charset=us-ascii

Key idea: A charset parameter describes text character encoding.

Terms

Look up a term in the glossary ↗

Rules & examples
  • 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
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
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.

All chapters in RFC 2045

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗