W3C home > Mailing lists > Public > www-validator@w3.org > March 2009

Help Required: No Character encoding declared at document level

From: O'Keefe.Michael <Michael.O'Keefe@cic.gc.ca>
Date: Mon, 30 Mar 2009 13:35:38 -0400
Message-ID: <D85B9177BF25C84692E27CC310199A34067EC87B@otor1s3.ont.ci.gc.ca>
To: <www-validator@w3.org>

Sorry I can't post the URL as the page is on our Intranet site but the
page header section is below.

I am in the process of converting our site from HTML 4.01 to XHTML 1.0
Strict and use the Direct input option on
http://validator.w3.org/#validate_by_input to validate the pages.

Today, for the first time, I got the following two warnings and don't
know why.
(1) No Character encoding declared at document level
(2) Using Direct Input mode: UTF-8 character encoding assumed
I solved this second warning by adding the line < meta
http-equiv="content-type" content="text/html" charset="utf8"> but the
first error still remains.
Does anyone know why all the previous pages passed without this line?

As a test, I revalidated several pages that has previously passed with
no errors nor warnings and got the same errors.

Could someone point me in the right direction on resolving this? Thanks
in advance!!!

Here is my header...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<title>Health and Safety Minutes - Windsor - January 2009</title>
< meta http-equiv="content-type" content="text/html" charset="utf8">
<meta name="dc.title" content="Health and Safety Minutes - Windsor -
January 2009" />
<meta name="dc.subject" scheme="gccore" content="Minutes" />
<meta name="dc.date.created" content="2009-03-30" />
<meta name="dc.date.modified" content="2009-03-30" />
<meta name="dc.language" scheme="ISO639-2" content="eng" />
<link href="/style.css" rel="stylesheet" type="text/css">
Received on Monday, 30 March 2009 18:54:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:12 UTC