X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C49AC54431 for ; Thu, 3 Mar 2005 14:28:08 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 83273-06 for ; Thu, 3 Mar 2005 14:28:04 +0000 (GMT) Received: from vscan02.westnet.com.au (vscan02.westnet.com.au [203.10.1.132]) by svr1.postgresql.org (Postfix) with ESMTP id 796A654438 for ; Thu, 3 Mar 2005 14:28:01 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id 7F7E611D4CA; Thu, 3 Mar 2005 22:28:03 +0800 (WST) Received: from vscan02.westnet.com.au ([127.0.0.1]) by localhost (vscan02.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30106-15; Thu, 3 Mar 2005 22:28:03 +0800 (WST) Received: from [202.72.133.22] (dsl-202-72-133-22.wa.westnet.com.au [202.72.133.22]) by vscan02.westnet.com.au (Postfix) with ESMTP id 07C0B11D4C8; Thu, 3 Mar 2005 22:28:02 +0800 (WST) Message-ID: <42271EF4.8090109@familyhealth.com.au> Date: Thu, 03 Mar 2005 22:28:04 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zouari Fourat Cc: pgsql-php@postgresql.org Subject: Re: unicode and frensh accents References: <621eda8a0503030622837a19e@mail.gmail.com> In-Reply-To: <621eda8a0503030622837a19e@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/15 X-Sequence-Number: 3030 > I have a problem displaying frensh data : > my client encoding is set to UNICODE (same as phpPgAdmin) > when selecting data with phpPgAdmin, there's no errors displaying > accents and other special frensh caracters. > but when selecting from my own script i dont get those frensh caracters. > in my html pages i do : > > like phpPgAdmin and there is allways problems displaying frensh data... > anyone can help ? Well, you can try sending an http header as well, before ANY of your script's output: header('Content-Type: text/html; charset=UTF-8'); Alternatively, try setting the client encoding to unicode with an sql statement before running any queries, however that should not be necessary as client encoding defaults to server encoding. BTW, have a look at the printHeader() method in classes/Misc.php in phpPgAdmin to see how we do it. Chris