W3C home > Mailing lists > Public > www-amaya@w3.org > January to March 2010

Encoding and validation

From: Bill Braun <bbraun@hlthsys.com>
Date: Fri, 15 Jan 2010 16:16:25 -0500
Message-ID: <4B50DB29.4020700@hlthsys.com>
To: "[list-email] W3 Amaya" <www-amaya@w3.org>
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"
<html xmlns="http://www.w3.org/1999/xhtml">
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  <meta name="generator" content="Amaya, see http://www.w3.org/Amaya/" />


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


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:42 UTC