Re: Japanese with UTF-8 and mysql
| From: | Mark Sargent | Date: | Tue, 07 Jun 2005 06:02:47 +0000 |
| Subject: | Re: Japanese with UTF-8 and mysql | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216542@lists.php.net to get a copy of this message | ||
Mark Sargent wrote:
Peter Brodersen wrote:actually, if I add this, header("Content-Type: index/html; charset=utf-8"); as suggested, firefox prompts to download the page, instead of just displaying the page. You have chosen to openOn Thu, 2 Jun 2005 11:58:26 +0100, in php.general rich@launchcode.co.uk (Richard Davey) wrote:Hi All, yes, I've tried that as well, with no success. As I've stated, people, the static J renders fine, just not the dynamic stuff. Cheers. Mark Sargent. Hi All,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");
productdetails.phpwhich is a : PHP file from: http://localhost/ What should firefox do with this file? Open with Browse.. Save to disk Weird, what's with that. Cheers. Mark Sargent.