W3C home > Mailing lists > Public > www-validator@w3.org > November 2012

Re: The validator change the declared encoding

From: M. Xavier Serrand <xavier.serrand@free.fr>
Date: Thu, 15 Nov 2012 18:04:18 +0100
To: <www-validator@w3.org>
Message-ID: <000001cdc353$40bd44a0$c237cde0$@serrand@free.fr>
JKK write

> When a document declared as iso-8859-1 contains octets (bytes) in the
range 

> 80..1F, browsers won't reject the document

 

You probably mean 80..9F

 

Validator complain even if no characters belong to this range ... 

Try with an ''empty'' HTML document : only minimal set of tags inside : 

 

<!DOCTYPE html><html xml:lang="fr" lang="fr"><head><meta
http-equiv="content-type" content="text/html;
charset=iso-8859-1"/><title>a</title></head><body></body>

 

Validation Output: 2 Warnings

Line 1, Column 124: Using windows-1252 instead of the declared encoding
iso-8859-1.
Received on Thursday, 15 November 2012 17:19:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 15 November 2012 17:19:33 GMT