W3C home > Mailing lists > Public > www-validator@w3.org > May 2003

Re: Unable to validate

From: Adam Sjøgren <spamtrap@koldfront.dk>
Date: Sat, 31 May 2003 18:27:35 +0200
To: www-validator@w3.org
Message-ID: <87y90n5bew.fsf@virgil.koldfront.dk>

On Sat, 31 May 2003 11:37:58 -0400, Gary Vidrine wrote:

> When I tried to validate a document, I received this message:

> I was not able to extract a character encoding labeling from any of
> the valid sources for such information.

[...]

> Does anyone know exactly what this means. I do have a DTD on the top
> of my page:

It means that you haven't indicated what character set your page uses.

You can indicate the character set in various ways (as the
error-message listed):

> The HTTP Content-Type field.

(i.e. configure your webserver to send charset-information).

> The XML Declaration.

(i.e. add <?xml version="1.0" encoding="CHARSET"?>, where you put the
name of the charset your page is in, where is says 'CHARSET' ("utf-8"
or "iso-8859-1" or whatever you are using)).

> The HTML "META" element.

(i.e. add <meta http-equiv="Content-Type" content="text/html;
charset=CHARSET"/> to the <head> of your page).


  Best regards,

-- 
 "Från och med nu, så är 'så snart                            Adam Sjøgren
  som möjligt' 53 timmar!"                               asjo@koldfront.dk
Received on Saturday, 31 May 2003 18:20:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:08 GMT