[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache2/PHP4 doing weird things with Chinese fonts



On Sun, 20 Aug 2006 16:14:13 +0200
Mathias Brodala <info@noctus.net> wrote:

> Hello Clayton.
> 
> > All the webpages in my site have, via PHP includes, the following at
> > the top:
> > 
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML>
> > <HEAD> <meta http-equiv="Content-Type" content="text/html;
> > charset=gb2312"> <meta 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

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



Reply to: