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
[Back to original message]
|