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

Re: Meta Character Encoding Not Detected

From: Anthony Ettinger <anthony@chovy.com>
Date: Tue, 20 Nov 2007 17:06:46 -0800
Message-ID: <3fc6b2fb0711201706yb3fa878u2c1b079d1db1eec@mail.gmail.com>
To: "Email Reply" <email_reply0234@mercysoftware.com>
Cc: www-validator@w3.org
On Nov 20, 2007 11:35 AM, Email Reply <email_reply0234@mercysoftware.com>

>  If I validate by Direct Input and paste the following code into the
> validator:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>test</title>
> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
> </head>
> <body>
> testing
> </body>
> </html>
> If I set encoding to "detect automatically" then the validator selects
> utf-8 as the encoding despite the fact that I have set a meta tag declaring
> it as iso-8859-1.
> If I set the encoding to iso-8859-1, then the validator issues a warning
> that I'm overriding the detected character encoding of utf-8.

There is no server http header for content-type, which is why it is
defaulting to utf8 (as is expected) when no encoding type is known. When you
tell it what to use, it is warning you...basically it is ignore the meta

Oddly enough, this has come up several times in the past...the local html
meta tag does *not* override the server headers, contrary to popular belief.

If someone else has a different opinion, I'd like to see some real
example/reference where the meta tag *does* override server header in the

Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");

Received on Wednesday, 21 November 2007 17:39:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:54 UTC