Encoding and validation

Bill Braun <[email protected]>
Newsgroups gmane.comp.web.amaya.general
Message-ID <[email protected]>
I created a new document in Amaya.

<?xml version="1.0" encoding="iso-8859-1"?>
<!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>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <title>New3</title>
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />
</head>

<body>

<p>TEST for Strict iso-8859-1</p>

</body>
</html>


When I run it through the w3 validator it passes, but serves up a warning:

Character Encoding mismatch!

The character encoding specified in the HTTP header (|utf-8|) is 
different from the value in the XML declaration (|iso-8859-1|). I will 
use the value from the HTTP header (|utf-8|).

What explains this, and how can the warning be cleared?

Bill Braun
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.