W3C home > Mailing lists > Public > www-validator@w3.org > December 2006

Re: PHP Includes (was BOM and UTF-8)

From: Michael Adams <linux_mike@paradise.net.nz>
Date: Thu, 14 Dec 2006 20:58:45 +1300
To: www-validator@w3.org
Message-id: <20061214205845.4f4610f1.linux_mike@paradise.net.nz>

On Wed, 13 Dec 2006 18:32:57 +1100
Lachlan Hunt wrote:


> > 
> > I do not understand what the issue could be here. PHP should leave
> > no artifacts or traces that should be visible to any browser. Could
> > someone clarify please.
> I believe the problem is that when you include a file using PHP, the 
> file is included exactly as-is and if the included file begins with a 
> BOM, that character will be included in the output wherever that file 
> was included.


Thanks Lachlan, explains it nicely. I use includes and UTF-8
extensively (working from Linux). I can suddenly see where my
unnexpected vertical gaps are coming from. Changing encoding will fix it
by the looks.

 Those that can, do; those that can't, teach.
Received on Thursday, 14 December 2006 07:56:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:50 UTC