Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21399 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71254 invoked by uid 1010); 4 Jan 2006 10:40:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 71239 invoked from network); 4 Jan 2006 10:40:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2006 10:40:47 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:42604] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 13/82-34518-E26ABB34 for ; Wed, 04 Jan 2006 05:40:47 -0500 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id k04AeaaL021122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 4 Jan 2006 02:40:37 -0800 Message-ID: <43BBA625.7070404@lerdorf.com> Date: Wed, 04 Jan 2006 02:40:37 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: freejay@freejay.it CC: internals@lists.php.net References: <200601041042.47383.freejay@freejay.it> In-Reply-To: <200601041042.47383.freejay@freejay.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Default charset From: rasmus@lerdorf.com (Rasmus Lerdorf) Not really a question for internals. header("Content-type: text/html; charset=UTF-8"); from your application will do the trick. -Rasmus Graziano Liberati wrote: > 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.