XHTML vs. <meta>-only encoding declarations

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 UTC