[WEB4LIB] New W3C Validator and character encoding

Andrew Cunningham andrewc at mail.vicnet.net.au
Tue Nov 26 18:05:23 EST 2002


Hi Robert,

that is definetly a character encoding mismatch.

if the page is actually in iso-8859-1 then you should specify that in 
the xml declaration:

<?xml version="1.0" encoding="iso-8859-1"?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

assuming it is iso-8859-1 and not Windows-1252.

unless the page is in UTF-*, in which case it should be

<?xml version="1.0" encoding="iso-8859-1"?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Andrew

Robert Sullivan wrote:
> I see the new version of the W3C validator <http://validator.w3.org/> is
> out of beta.  When I checked one of my older pages, it complained:
> 
> Character Encoding mismatch! The character encoding specified in the XML
> declaration (utf-8) is different from the value in the <meta> element
> (iso-8859-1).
> 
> The offending lines in my pages are:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
> />
> 
> Didn't have a problem with the previous version of the validator, and
> the Web Design Group validator at
> http://www.htmlhelp.com/tools/validator/ says it's fine.
> 
> This page is still XHTML 1.0 Transitional, but I tried one of my 1.0
> Strict pages and got the same result.
> 
> Thanks for any suggestions.
> 
> Bob Sullivan  <rsullivan at sals.edu>
> Schenectady County Public Library (NY)  <http://www.scpl.org/>
> Schenectady Digital History Archive
> <http://www.schenectadyhistory.org/>
> 
> 
> .
> 


-- 
Andrew Cunningham
Multilingual  Technical Officer
OPT, Vicnet
State Library of Victoria
Australia

andrewc at vicnet.net.au

Ph: +61-3-8664-7001
Fax: +61-3-9639-2175

http://home.vicnet.net.au/~andrewc/
http://www.openroad.net.au/




More information about the Web4lib mailing list