pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bill Wraith <bwraith@nji.com>
To: pgsql-php@postgresql.org
Subject: php pear DB, UTF8 settngs question
Date: Sat, 10 Jan 2004 03:21:51 -0500
Message-ID: <3FFFB61F.3050006@nji.com> (raw)

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






Message-ID: <3FFFB61F.3050006@nji.com>
Permalink:  ../3FFFB61F.3050006@nji.com/
Also on:    postgresql.org/message-id/3FFFB61F.3050006@nji.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: bwraith@nji.com
  Subject: Re: php pear DB, UTF8 settngs question
  In-Reply-To: <3FFFB61F.3050006@nji.com>
  References: <3FFFB61F.3050006@nji.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox