From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tim Perdue <tim@perdue.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Foreign character struggles
Date: Fri, 25 Oct 2002 10:37:59 -0400
Message-ID: <22964.1035556679@sss.pgh.pa.us> (raw)
In-Reply-To: <20021025083259.B29164@mail.perdue.net>
References: <20021025083259.B29164@mail.perdue.net>
Tim Perdue <tim@perdue.net> writes:
> I compiled postgres with --enable-multibyte and --enable-recode, and it
> doesn't appear to help with my problem.
I think this is a locale issue, not a character set issue. You
definitely need --enable-locale, but I doubt you need either of the
above (unless you need to deal with Unicode or Far-Eastern languages).
> If an end-user types plain-english Sao Paulo, I want the database to pull up
> "São Paulo", essentially just treating the accented characters as if they were
> regular ASCII.
I'd suggest matching on "upper(city)" to get rid of accents; given the
right locale setting that should work, and you can add a functional
index to make it fast.
> Also, my "Up Arrow" and "Delete" keys no longer work since I recompiled 7.2.3
> on debian.
You are missing libreadline.
regards, tom lane
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, tim@perdue.net
Subject: Re: Foreign character struggles
In-Reply-To: <22964.1035556679@sss.pgh.pa.us>
* 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