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

[Bug 20307] in HTML should warn when title precedes meta@charset

From: <bugzilla@jessica.w3.org>
Date: Sat, 08 Dec 2012 15:27:12 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-20307-169-tLkawsgDzf@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20307

--- Comment #2 from Daniel.S <crazy-daniel@gmx.de> ---
(In reply to comment #1)
> Yeah, if you put validate it by pasting it into the textarea. That's just
> because it treats all textarea input as UTF-8.

I didn't do that. Sorry for being ambiguous.

I have created an html document which is iso-8859-1 encoded and used the file
upload feature at validator.nu

This results in one warning:
> Warning: Using windows-1252 instead of the declared encoding iso-8859-1.

And one error:
> Error: No explicit character encoding declaration has been seen yet (assumed
> windows-1252) but the document contains non-ASCII.
> <head>↩ <title>äöü</title>↩ <m

I think this is a useful error that the W3 Validator should report as well.

> But if you take that same document and instead put it up on the Web and
> serve it with a iso-8859-1 charset in the content-type header, you won't get
> an error (you'll get a warning but that's a different story).

I get your point: However, some servers do not send any encoding information at
all and there are use cases where a HTTP header is simply not available (local
documents for example).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 8 December 2012 15:27:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:54 UTC