Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78602 invoked by uid 1010); 4 Jan 2006 11:15:52 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78586 invoked from network); 4 Jan 2006 11:15:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 11:15:52 -0000 X-Host-Fingerprint: 212.55.154.25 relay5.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.25:48729] helo=sapo.pt) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id E0/23-34518-76EABB34 for ; Wed, 04 Jan 2006 06:15:51 -0500 Received: (qmail 15213 invoked by uid 0); 4 Jan 2006 11:15:48 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.154) by relay5 with SMTP; 4 Jan 2006 11:15:48 -0000 Received: (qmail 9402 invoked from network); 4 Jan 2006 11:15:47 -0000 X-AntiVirus: PTMail-AV 0.3.87.1 X-Virus-Status: Clean (0.00421 seconds) Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.184.225]) (envelope-sender ) by mta4 (qmail-ldap-1.03) with SMTP for ; 4 Jan 2006 11:15:47 -0000 Message-ID: <006301c61120$365c6b90$0100a8c0@pc07653> To: , References: <200601041042.47383.freejay@freejay.it> Date: Wed, 4 Jan 2006 11:15:43 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-15"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Subject: Re: [PHP-DEV] Default charset From: nlopess@php.net ("Nuno Lopes") PHP had a bug when handling the default_charset in CGI mode. Upgrading PHP will do the trick. Nuno > Hi, I wrote the same mail some days ago in the general list and I asked > also > on the #php IRC channel on Freenode but I didn't find any answer, so I try > here. > > 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. > > My system: PHP 5.0.5, Apache 2.0.54. > > Someone can help me? > > Regards.