Re: The validator change the declared encoding

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 UTC