You are here: Re: utf8 output from database « PHP Programming Language « IT news, forums, messages
Re: utf8 output from database

Posted by Andy Hassall on 11/16/05 00:20

On Tue, 15 Nov 2005 14:59:17 -0000, "elyob" <newsprofile@gmail.com> wrote:

> <meta http-equiv="content-type" content="text/html;charset=utf-8" />

PHP is a server-side programming language, and so is capable of outputting
real HTTP headers. These are by far more preferable to meta Content-type
headers, which are more useful for storage media that don't have separate
metadata - i.e. when just dumped to a filesystem.

<?php header("Content-type: text/html;charset=utf-8"); ?.

... is much more likely to cause the browser to accept the encoding of the
page as UTF-8.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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