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

Re: [VE][46] Add Subject Here

From: Michael Adams <linux_mike@paradise.net.nz>
Date: Thu, 29 May 2008 07:47:07 +1200
To: www-validator@w3.org
Message-id: <20080529074707.678abbc9.linux_mike@paradise.net.nz>

On Wed, 28 May 2008 09:22:10 -0400
Valdy Rossit wrote:

> Using Expressionsweb to create website. Appears fine in IE but not
> well in Firefox.
> 
> First error upon Validating Output was
> 
> Line 1, Column 0: character "" not allowed in prolog.
> 
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3
> 
>  


The three characters "" are the BOM of UTF-8 encoded using
ISO-8859-1. Your server is sending your page as ISO-8859-1 instead of
UTF-8 in the HTTP header[1].

I believe some Windows programs always add a BOM to UTF-8 documents
which is unnecessary but allowed in many protocols.

Note that the validator will determine the character encoding from the
HTTP header in preference to the meta Content-Type.

You have two choices, change your server settings, or change the
encoding you use in the document.

[1]
http://web-sniffer.net/?url=www.gatewaychc.org%2F&submit=Submit&http
=1.1&gzip=yes&type=GET&uak=0
The above link will probably be broken as it spreadds across 2 lines,
but the tinyURL below will work for the same thing:
http://tinyurl.com/6sxye7


-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416
Received on Wednesday, 28 May 2008 19:46:28 GMT

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