Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5AC2247620D for ; Fri, 25 Oct 2002 09:37:25 -0400 (EDT) Received: from mail.perdue.net (12-216-72-93.client.mchsi.com [12.216.72.93]) by postgresql.org (Postfix) with ESMTP id 98C3B47623F for ; Fri, 25 Oct 2002 09:37:24 -0400 (EDT) Received: (from tperdue@localhost) by mail.perdue.net (8.11.2/8.11.2/Debian 8.11.2-1) id g9PDX0E30549 for pgsql-sql@postgresql.org; Fri, 25 Oct 2002 08:33:00 -0500 Date: Fri, 25 Oct 2002 08:33:00 -0500 From: Tim Perdue To: pgsql-sql@postgresql.org Subject: Foreign character struggles Message-ID: <20021025083259.B29164@mail.perdue.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.3.12i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/356 X-Sequence-Number: 10073 I compiled postgres with --enable-multibyte and --enable-recode, and it doesn't appear to help with my problem. I have a database which contains "foreign" characters in city names, like "São Paulo" (Sao Paulo). 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. select to_ascii(city) from latlong where ccode='BR'; ERROR: pg_to_ascii(): unsupported encoding from SQL_ASCII select convert(city,'UNICODE', 'LATIN1') from latlong where ccode='BR'; ERROR: Could not convert UTF-8 to ISO8859-1 Also, my "Up Arrow" and "Delete" keys no longer work since I recompiled 7.2.3 on debian. Thanks for any help, Tim Perdue