W3C home > Mailing lists > Public > www-validator@w3.org > November 2002

Re: Beta: Charset attribute

From: Einar Westermann <einar.westermann@online.no>
Date: Fri, 01 Nov 2002 08:10:06 +0100
Message-ID: <3DC228CE.CAD29A42@online.no>
To: Karl Ove Hufthammer <karl@huftis.org>, www-validator@w3.org

But can there really be a "HTTP Content-Type field" in an upload to the
validator?

Einar Westermann

Karl Ove Hufthammer wrote:
> 
> Einar Westermann <einar.westermann@online.no> wrote in
> news:3DC145D3.4A23CD5C@online.no:
> 
> > "Note: The HTTP Content-Type field did not contain a "charset"
> > attribute, but the Content-Type was one of the XML text/*
> > sub-types. (...)"
> 
> This is correct. The default value 'US-ASCII' overrides *both* the
> encoding specified by the 'encoding' pseudo-attribute of the XML
> declaration and the encoding specified in the 'meta' element (the
> latter should have no effect for XHTML anyway). If you want to use
> a different encoding than 'US-ASCII' for 'text/xml' documents, you
> *have* to include a 'charset' parameter for the 'Content-Type'
> header.
> 
> But if the error message says '"charset" attribute', this is
> certainly a bug. 'charset' is a parameter -- not an attribute.
> 
> --
> Karl Ove Hufthammer
Received on Friday, 1 November 2002 02:10:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:04 GMT