Re: Apache2/PHP4 doing weird things with Chinese fonts

2006-08-20 Thread claytonk

On Sun, 20 Aug 2006 16:14:13 +0200
Mathias Brodala <[EMAIL PROTECTED]> wrote:

> Hello Clayton.
> 
> > All the webpages in my site have, via PHP includes, the following at
> > the top:
> > 
> >  
> >> content="gb2312">
> 
> These are only relavant if you display the webpages locally, apart
> from HTTP.
> 
> Did you send the appropriate content–type–header via PHP?
> 
> Regards, Mathias

Thanks Mathias, exactly the hint I needed.

I put this at the top of every page, and now all is well:
header('Content-Type: text/html; charset="gb2312"');

Clayton


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Apache2/PHP4 doing weird things with Chinese fonts

2006-08-20 Thread Mathias Brodala
Hello Clayton.

> All the webpages in my site have, via PHP includes, the following at
> the top:
> 
> http-equiv="Content-Type" content="text/html; charset=gb2312">  http-equiv="content-language" content="gb2312">

These are only relavant if you display the webpages locally, apart from HTTP.

Did you send the appropriate content–type–header via PHP?


Regards, Mathias



signature.asc
Description: OpenPGP digital signature