Encoding and validation

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

Received on Friday, 15 January 2010 21:16:23 UTC