X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0FBB6D1B468 for ; Sat, 10 Jan 2004 08:22:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 74620-04 for ; Sat, 10 Jan 2004 04:22:06 -0400 (AST) Received: from ns2.nji.com (ns2.nji.com [216.44.116.3]) by svr1.postgresql.org (Postfix) with ESMTP id 85BD5D1B46C for ; Sat, 10 Jan 2004 04:21:57 -0400 (AST) Received: from nji.com (ws620.wraithnj.com [216.44.78.11]) by ns2.nji.com (8.12.0/8.12.0) with ESMTP id i0A8Lp4t025217 for ; Sat, 10 Jan 2004 03:21:52 -0500 Message-ID: <3FFFB61F.3050006@nji.com> Date: Sat, 10 Jan 2004 03:21:51 -0500 From: Bill Wraith User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: php pear DB, UTF8 settngs question Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/6 X-Sequence-Number: 2522 Hi, I recently moved a web site that uses the PEAR DB module to communicate w/postgresql from an RH9 server to an RHEL3 server. Before doing this, I had changed the /etc/sysconfig/i18n setting to en_US from en_US.UTF8, which I did because it was suggested in some spamassassin installation mail discussions that spamassassin and other perl scripts might not work without making this change. I then created a new postgresql database, which automatically set en_US for LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME in the postgresql.conf file. I found that my DB::connect() failed with a "database not found" error message. When I changed the settings for LC_x variables back to en_US.UTF-8 in the postgresql.conf file, my connection succeeded and the appication seemed to work as expected. I found I could communicate with the database from a local or remote server via psql, regardless of the LC_x variable settings. I was hoping to be pointed to some documentation or any basic insights into how these settings affect PHP connections to postgresql. Am I making a mistake to have changed the /etc/sysconfig/i18n setting before initializing and loading the postgresql database? Is it OK to have changed the settings for the LC_x variables in postgresql.conf after the fact? Thanks for any help understanding this, Bill Wraith