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:

[snip]

> 
> > 
> > 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.
> 

[snip]

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.

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

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