W3C home > Mailing lists > Public > www-validator@w3.org > July 2011

Incorrect behaviour with utf-16 meta declaration

From: Richard Ishida <ishida@w3.org>
Date: Sun, 03 Jul 2011 10:32:15 +0100
Message-ID: <4E10371F.7040505@w3.org>
To: www-validator@w3.org

I get the following error messages:

Error Line 5, Column 70: Internal encoding declaration specified utf-16 
which is not an ASCII superset. Continuing as if the encoding had been 

<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />

Error Line 5, Column 70: Internal encoding declaration utf-8 disagrees 
with the actual encoding of the document (utf-16).

<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />

It is incorrect to parse the document as utf-8, since the document 
actually *is* a utf-16 document. You can report that use of the utf-16 
meta declaration is against the spec in utf-16 documents, but not assume 
that the encoding is wrong.


Richard Ishida
Internationalization Activity Lead
W3C (World Wide Web Consortium)


Register for the W3C MultilingualWeb Workshop!
Limerick, 21-22 September 2011
Received on Sunday, 3 July 2011 09:32:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:04 UTC