W3C home > Mailing lists > Public > ietf-http-wg@w3.org > April to June 2006

Re: Default Charsets

From: Robert Sayre <sayrer@gmail.com>
Date: Tue, 13 Jun 2006 15:43:13 -0400
Message-ID: <68fba5c50606131243n252a0e49ic847d412b269b153@mail.gmail.com>
To: "Mark Nottingham" <mnot@yahoo-inc.com>
Cc: ietf-http-wg@w3.org

On 6/13/06, Mark Nottingham <mnot@yahoo-inc.com> wrote:
>
> So... is this an errata?
>
> Are there cases where having this as a default is actually helpful?
>
> > However, many, if not all, of the text/* media types define their
> > own defaults; text/plain (RFC2046), for example, defaults to ASCII,
> > as does text/xml (RFC3023).
> >

FWIW, Mozilla defaults text/xml to utf-8 (doesn't everyone?), but does
actually use ISO-8859-1/CP-1252 as a default if all else fails,
including sniffing. See

<http://lxr.mozilla.org/seamonkey/source/content/html/document/src/nsHTMLDocument.cpp#831>

for the gory details. Other media types try similar things:

(this link is slow)
<http://landfill.mozilla.org/mxr-test/seamonkey/search?string=AssignLiteral%28%22ISO-8859-1%22>

-- 

Robert Sayre
Received on Tuesday, 13 June 2006 19:43:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 06:49:44 GMT