Re: Unable to validate

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!"                     

Received on Saturday, 31 May 2003 18:20:42 UTC