|
Posted by BootNic on 06/26/07 14:38
> dorayme <doraymeRidThis@optusnet.com.au> wrote:
> news: doraymeRidThis-28E087.23060026062007@news-vip.optusnet.com.au
> I have been getting some strange characters appear from my local
> server when some markup is delivered via a php include. Even when
> I select all in the include file and delete and save, I get,
> naturally enough none of the usual text icorporated. Yet these
> characters appear at the top of the include in all browsers.
> Sorry, I have not identified exactly the factors causing this
> yet. The characters concerned are:
>
> 
>
> Anyone recognise these and so give me any sort of clue that could
> be helpful in tracking the source of the problem please? (Hard to
> know if these will appear correctly when I post this. Might have
> to screen shot them...)
If a include file is saved in UTF-8 with BOM and included in a file
served as iso-8859-1, one could expect to see the same result.
As Benjamin Niemann suggest, save utf-8 without BOM, as well as the
document its going to be included in.
Serve your document as utf-8
<?php
header("Content-Type:text/html; charset=utf-8");
?>
or you could change your php default charset
default_mimetype = "text/html"
default_charset = "utf-8"
--
BootNic Tuesday, June 26, 2007 10:37 AM
Genius is eternal patience.
*Michelangelo*
[Back to original message]
|