logo       


php pear DB, UTF8 settngs question: msg#00005

Subject: php pear DB, UTF8 settngs question
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




---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
     joining column's datatypes do not match



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe