W3C home > Mailing lists > Public > www-validator@w3.org > June 2003

XHTML vs. <meta>-only encoding declarations

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 27 Jun 2003 05:34:49 +0200
To: www-validator@w3.org
Cc: duerst@w3.org
Message-ID: <3f2bb568.162904504@smtp.bjoern.hoehrmann.de>

Hi,

  There are a number of differences between the use of character
encoding information in XHTML documents among the W3C MarkUp and CSS
Validators which are confusing to a number of authors. This is one of
them:

  Content-Type: text/html

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title></title>
    <meta
       http-equiv='Content-Type'
       content='text/html;charset=iso-8859-1' />
  </head>
  <body>
    <p>Björn</p>
  </body>
  </html>

The MarkUp Validator gives no errors / warnings / whatever, it just
tells the document is valid. The CSS Validator will treat the document
as UTF-8 encoded XML document and throw an error for the bad UTF-8
sequence. At least one of the validators should be changed to get
consistent results. Which and how?

regards.
Received on Thursday, 26 June 2003 23:35:16 GMT

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