Re: Overriding local encoding defaults

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob McConnell <rmcconne(at)lightlink(dot)com>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Overriding local encoding defaults
Date: 2010-10-17 14:25:14
Message-ID: 8329.1287325514@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Bob McConnell <rmcconne(at)lightlink(dot)com> writes:
> I am trying to create a Pg 8.4 cluster with UTF8 encoding for JDBC
> access. But initdb insists that because my local console is en_US, it
> cannot do that. We're talking about setting up a server here. Why should
> it even care what the local console settings are?

You need a locale setting that's compatible with UTF8, and apparently
your platform's version of "en_US" isn't. Try specifying locale
en_US.utf8. (There are various ways of spelling that --- "locale -a"
should give you a clue which one applies for you.)

regards, tom lane

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Bob McConnell 2010-10-17 16:48:29 Re: Overriding local encoding defaults
Previous Message Leif Biberg Kristensen 2010-10-17 13:50:03 Re: Overriding local encoding defaults