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

Re: The validator change the declared encoding

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 15 Nov 2012 21:14:32 +0200
Message-ID: <50A53F18.7080607@cs.tut.fi>
To: "M. Xavier Serrand" <xavier.serrand@free.fr>
CC: www-validator@w3.org
2012-11-15 19:04, M. Xavier Serrand wrote:

> JKK write
>
>>When a document declared as iso-8859-1 contains octets (bytes) in the range
>
>> 80..1F, browsers won't reject the document

That was in
http://lists.w3.org/Archives/Public/www-validator/2011Jan/0053.html

> You probably mean 80..9F

Right.

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

Well, it does not really complain, just warns.

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

Yes, it still issues the warning. That's because it is simplistic and 
just checks what the declared encoding is, and if it is iso-8859-1, it 
tells that it will be interpreted as windows-1252.

The minimal document to demonstrate this is

<!doctype html><title></title>

when served with the HTTP header

Content-Type: text/html;charset=iso-8859-1

Yucca
Received on Thursday, 15 November 2012 19:15:01 GMT

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