Hi Graziano,

At 10:42 04.01.2006, you wrote:
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 of the output is still ISO-8859-1.

create a .htaccess file in the application directory where you use the "php_value" command to set this variable. See http://www.php.net/php_value

The problem is that changing the charset in the script is too late (it is running so it cannot be changed anymore).

-----
Uwe Schindler
[EMAIL PROTECTED] - http://www.php.net
NSAPI SAPI developer
Bremen, Germany

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to