W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: [XHR] Some comments on "charset" in the Content-Type header

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 12 Oct 2009 17:58:35 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "WebApps WG" <public-webapps@w3.org>
Message-ID: <op.u1o2nxiw64w2qv@annevk-t60>
On Mon, 12 Oct 2009 17:51:45 +0200, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 10/12/09 5:06 AM, Anne van Kesteren wrote:
>> FWIW, this is what I've done now. It gives authors a reasonable level of
>> control over the Content-Type header, it does make sure an incorrect
>> charset parameter is fixed, and includes a charset parameter and MIME
>> type if the author did not include a Content-Type header.
> Note that it also makes it a PITA for authors to correctly send their  
> XHTML document as application/xhtml+xml with the right charset set.  But  
> if that's ok....

If you do something as simple as


it will be corrected so it should be fine.

However, it is not clear to me why you'd want a charset parameter for XML  
resources to begin with. The metadata the XML parser can extract is much  
more likely to be correct.

Anne van Kesteren
Received on Monday, 12 October 2009 15:59:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:30 UTC