You are here: Re: Re[2]: [PHP] Japanese with UTF-8 and mysql « PHP « IT news, forums, messages
Re: Re[2]: [PHP] Japanese with UTF-8 and mysql

Posted by Peter Brodersen on 06/03/05 12:53

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация