W3C home > Mailing lists > Public > www-validator@w3.org > April 2002

Re: Frustration (so I tested the validation page itself)

From: Stephane Gourichon <Stephane.Gourichon@lip6.fr>
Date: Thu, 18 Apr 2002 20:27:07 +0200 (CEST)
To: Anke & Max <ankemax@albanyis.com.au>
cc: <www-validator@w3.org>, <gerald@w3.org>
Message-ID: <Pine.LNX.4.33L2.0204182018230.20192-100000@pichu.lip6.fr>
On Sat, 13 Apr 2002, Anke & Max wrote:

> W3C HTML Validation Service ResultsGidday
> Thanks for the site and the useful service. This is the first time I have attempted to have a page validated.
> I was having trouble figuring out how to put in the encoding so I veiwed the source of the Validation page thinking "I can copy from here". There wasn't any example so I sent your page and found No Character Encoding detected.  I have to ask how come? Are you not supposed to be setting an example to us?
> Please, please, fix it.
> regards
> max
>  HTML Validation Service Results
>       File:  C:\WINDOWS\Profiles\m\Desktop\test.html
>       Detected Character Encoding:  unknown
>       Select Character Encoding:   (detect automatically)utf-8 (Unicode, worldwide)iso-8859-1 (Western Europe)iso-8859-2 (Central Europe)iso-8859-3 (Maltese)iso-8859-4 (Baltic Rim)iso-8859-5 (Cyrillic)iso-8859-6-i (Arabic)iso-8859-7 (Greek)iso-8859-8-i (Hebrew)iso-8859-9 (Turkish)iso-8859-10 (Latin 6)iso-8859-13 (Latin 7)iso-8859-14 (Celtic)iso-8859-15 (Latin 9)us-ascii (basic English)euc-jp (Japanese, Unix)shift_jis (Japanese, Win/Mac)iso-2022-jp (Japanese, email)euc-kr (Korean)gb2312 (Chinese, simplified)big5 (Chinese, traditional)tis-620 (Thai)koi8-r (Russian)koi8-u (Ukrainian)macintosh (MacRoman)windows-1250 (Central Europe)windows-1251 (Cyrillic)windows-1252 (Western Europe)windows-1253 (Greek)windows-1254 (Turkish)windows-1255 (Hebrew)windows-1256 (Arabic)windows-1257 (Baltic Rim)
>       Current Doctype:  HTML 4.01 Transitional
>       Select Doctype:   (detect automatically)XHTML 1.0 StrictXHTML 1.0 TransitionalXHTML 1.0 FramesetHTML 4.01 StrictHTML 4.01 TransitionalHTML 4.01 FramesetHTML 3.2HTML 2.0
>       Options:  Show Source Outline Parse Tree ...no attributes

The encoding can be transmitted by two ways:
either in the http header (the web server takes care of this),
or inside the page itself, like this (in the <head> section):
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

If you ask the validator to validate its own output, try this:
http://validator.w3.org/check?uri=http%3A%2F%2Fvalidator.w3.org
it passes the test because the encoding is in the http header.

You can see it with programs like wget:
wget -S http://validator.w3.org/
 1 HTTP/1.1 200 OK
(...)
10 Content-Type: text/html; charset=iso-8859-1

In your case,
>       File:  C:\WINDOWS\Profiles\m\Desktop\test.html

You asked the server to validate a page from your hard disk, not by
http. No http header means no encoding information was given to the
validator, this is why it complained.
You should then use the meta http-equiv method.

Regards,

-- 
Stéphane Gourichon - Labo. d'Informatique de Paris 6 - AnimatLab
http://animatlab.lip6.fr/ - philo du dimanche http://amphi-gouri.org/

"What difference does it make to the dead, the orphans, and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty and democracy?" -- Ghandi
Received on Thursday, 18 April 2002 14:27:22 GMT

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