Re: Default charset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



at the top of your script you could add a:
header('Content-Type: text/html; charset=UTF-8');
that would work aswell (according to RFC 2616: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17)

;)

- tul

Graziano Liberati wrote:

Hi, I need to set the default charset for my application to UTF-8 instead of the default one of the webserver that is ISO-8859-1. I've tried to change the value of default_charset in php.ini and all it's ok, but I need to set the value only for one application so I've tried to use the ini_set function in this way:
ini_set('default_charset','utf-8');

The problem is that that the ini_set function seems to be ignored, I don't have the same effect of changing the php.ini configuration file, with the ini_set function the default charset is still ISO-8859-1.

Someone can help me?

Regards.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux