Re: Validation of XHTML 1.0 files erroneously says Unknown Encoding?!

Eric Maryniak <e.maryniak@pobox.com> wrote:

> note the encoding ("UTF-8"). However, the validator still says:
> 
>     Character encoding: unknown
> 
> Is this correct?

Although it would be better to recognize the encoding declaration,
the "correct" way to specify the character encoding is to use
the charset parameter of the "Content-Type" HTTP response header.
Your page only sends "Content-Type: text/html".  If you add the correct
charset parameter, the validator does recognize the encoding.

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Tuesday, 5 September 2000 02:38:14 UTC