Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21400 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73024 invoked by uid 1010); 4 Jan 2006 10:45:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73009 invoked from network); 4 Jan 2006 10:45:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 10:45:28 -0000 X-Host-Fingerprint: 80.190.230.99 www.troja.net Linux 2.5 (sometimes 2.4) (4) Received: from ([80.190.230.99:50496] helo=mail.troja.net) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id FF/B2-34518-647ABB34 for ; Wed, 04 Jan 2006 05:45:27 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.troja.net (Postfix) with ESMTP id 6B28F163C7; Wed, 4 Jan 2006 11:45:31 +0100 (CET) Received: from mail.troja.net ([127.0.0.1]) by localhost (cyca.troja.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15489-01; Wed, 4 Jan 2006 11:45:29 +0100 (CET) Received: from vega.php.net (port-212-202-85-183.dynamic.qsc.de [212.202.85.183]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.troja.net (Postfix) with ESMTP id 7CB1815FE4; Wed, 4 Jan 2006 11:45:28 +0100 (CET) Message-ID: <7.0.0.16.0.20060104114047.03eea370@thetaphi.de> X-Mailer: QUALCOMM Windows Eudora Version 7.0.0.16 Date: Wed, 04 Jan 2006 11:45:20 +0100 To: freejay@freejay.it,internals@lists.php.net In-Reply-To: <200601041042.47383.freejay@freejay.it> References: <200601041042.47383.freejay@freejay.it> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: amavisd-new at troja.net Subject: Re: [PHP-DEV] Default charset From: thetaphi@php.net (Uwe Schindler) 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 thetaphi@php.net - http://www.php.net NSAPI SAPI developer Bremen, Germany