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

Re: Beta: Charset attribute

From: Karl Ove Hufthammer <karl@huftis.org>
Date: Thu, 31 Oct 2002 11:55:34 -0500 (EST)
To: www-validator@w3.org
Message-Id: <1C250C46-ED3B-11D6-945E-000393BAB03A@huftis.org>

Einar Westermann <einar.westermann@online.no> wrote in

> "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'

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 Thursday, 31 October 2002 20:41:59 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 November 2015 11:01:17 UTC