Re: Re[2]: [PHP] Japanese with UTF-8 and mysql

From: Date: Fri, 03 Jun 2005 09:53:08 +0000
Subject: Re: Re[2]: [PHP] Japanese with UTF-8 and mysql
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-216302@lists.php.net to get a copy of this message
On Thu, 2 Jun 2005 11:58:26 +0100, in php.general rich@launchcode.co.uk (Richard Davey) wrote: >I would recommend setting UTF-8 as the Content-type via PHP itself: >header('Content-type: UTF-8') - do it as one of the first things when >you're ready to output the HTML. UTF-8 is a charset, not a Content-type. A quick test shows that the HTTP header output from Apache would contain: Content-Type: UTF-8 The correct way - if one wants utf-8 as charset - is: header("Content-Type: index/html; charset=utf-8"); -- - Peter Brodersen

« previous php.general (#216302) next »