Internet Engineering Task Force (IETF) A. Melnikov Request for Comments: 6657 Isode Limited Updates: 2046 J. Reschke Category: Standards Track greenbytes ISSN: 2070-1721 July 2012Update to MIME regarding "charset" Parameter Handling in Textual Media Types
Melnikov & Reschke Standards Track [Page 1]
RFC 6657 MIME Charset Default Update July 2012
Table of Contents
1. Introduction and Overview
RFC 2046 specified that the default "charset" parameter (i.e., the value used when the parameter is not specified) is "US-ASCII" (Section 4.1.2 of [RFC2046]). RFC 2616 changed the default for use by HTTP (Hypertext Transfer Protocol) to be "ISO-8859-1" (Section 3.7.1 of [RFC2616]). This encoding is not very common for new "text/*" media types and a special rule in the HTTP specification adds confusion about which specification ([RFC2046] or [RFC2616]) is authoritative in regards to the default charset for "text/*" media types.
2. Conventions Used in This Document
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119]. 3. New Rules for Default "charset" Parameter Values for "text/*" Media Types
Melnikov & Reschke Standards Track [Page 2]
RFC 6657 MIME Charset Default Update July 2012
Section 4.1.2 of [RFC2046] says:
Melnikov & Reschke Standards Track [Page 3]
RFC 6657 MIME Charset Default Update July 2012 4. Default "charset" Parameter Value for "text/plain" Media TypeThe default "charset" parameter value for "text/plain" is unchanged from [RFC2046] and remains as "US-ASCII".
5. Security Considerations
Guessing of the "charset" parameter can lead to security issues such as content buffer overflows, denial of services, or bypass of filtering mechanisms. However, this document does not promote guessing, but encourages use of charset information that is specified by the sender.
6. IANA Considerations
IANA has updated the "text" subregistry of the Media Types registry (<http://www.iana.org/assignments/media-types/text/>) to add the following preamble: "See [RFC6657] for information about 'charset' parameter handling for text media types."7. References 7.1. Normative References[RFC2046] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Melnikov & Reschke Standards Track [Page 4]
RFC 6657 MIME Charset Default Update July 2012 7.2. Informative References[RFC2616] Fielding, R., Gettys, J., Mogul, J., Frystyk, H.,
Melnikov & Reschke Standards Track [Page 5]
RFC 6657 MIME Charset Default Update July 2012 Appendix A. AcknowledgementsMany thanks to Ned Freed and John Klensin for comments and ideas that motivated creation of this document, and to Carsten Bormann, Murray S. Kucherawy, Barry Leiba, and Henri Sivonen for feedback and text suggestions.