[WEB4LIB] New W3C Validator and character encoding

Scritchfield, Larry LScritch at MAIL.co.washoe.nv.us
Tue Nov 26 16:19:40 EST 2002


No one else has made any suggestions yet, so I'll try.

The question seems to be, "How do I get the validator to stop complaining
(about this)?"

The XML encoding and the HTML character set need to be the same.
Either UTF-8, iso-8859-1, or us-ascii, just make them the same in both
places. Any of the three would probably be correct enough, though
us-ascii is the narrowest match.

When I validated your home page by saving it locally then uploading it
post-edit,
the validator complained that my browser wasn't sending the right
encoding request in the HTTP header - until I stopped using MSIE and
used Mozilla instead.

Larry Scritchfield
lscritch at mail.co.washoe.nv.us
Internet Services Librarian                             (775) 327-8349
Washoe County Library System                      www.washoe.lib.nv.us

> -----Original Message-----
> From:	Robert Sullivan [SMTP:rsullivan at sals.edu]
> Sent:	Tuesday, November 26, 2002 7:26 AM
> To:	Multiple recipients of list
> Subject:	[WEB4LIB] New W3C Validator and character encoding
> 
> 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/>
> 



More information about the Web4lib mailing list