Re: Changing Default Charset

From: Date: Tue, 09 Mar 2004 14:35:47 +0000
Subject: Re: Changing Default Charset
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-179895@lists.php.net to get a copy of this message
On Mon, 2004-03-08 at 21:34, Span wrote: > I think it can't work if the server has set the default_charset in the > php.ini . > > eg: > if in php.ini has: > default_charset="gb_2312" > then only changing the charset in html page didn't work. > >>header('Content-type: text/html; charset=UTF-8'); Are you sure? I've not actually tried it but php.ini also has a default Content-type which you CAN override using header(). -- Brian V Bonini <b-bonini@cox.net>

« previous php.general (#179895) next »