[Sussex] DTD and encoding ????

Colin Tuckley colin at tuckley.org
Mon Jul 11 19:15:49 UTC 2005


John D. wrote:

> This is throwing up an error that I don't follow.
> 
> I've used this
> 
> *<!DOCTYPE *html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"*>
> *
> 
> but when I run it through the validator it tells me that
> 
> "I was not able to extract a character encoding labeling from any of the
> valid sources for such information. Without encoding information it is
> impossible to reliably validate the document. I'm falling back to the
> "UTF-8" encoding and will attempt to perform the validation, but this is
> likely to fail for all non-trivial documents"

As well as the Doctype header before the <html> tag that you have you also
need the following or something similar INSIDE the <HEAD> of the page.

<METTA HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">



-- 
Colin Tuckley      |  colin at tuckley.org  |  PGP/GnuPG Key Id
+44(0)1903 236872  |  +44(0)7799 143369  |     0x1B3045CE

A. Because it breaks the logical sequence of discussion  Q. Why is top
posting bad?




More information about the Sussex mailing list