X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 68CEDD1B4CA for ; Mon, 26 Jul 2004 11:20:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 13435-03 for ; Mon, 26 Jul 2004 14:20:47 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by svr1.postgresql.org (Postfix) with ESMTP id 2556FD1B380 for ; Mon, 26 Jul 2004 11:20:31 -0300 (ADT) Received: by mproxy.gmail.com with SMTP id m69so75112rne for ; Mon, 26 Jul 2004 07:20:40 -0700 (PDT) Received: by 10.38.163.63 with SMTP id l63mr240436rne; Mon, 26 Jul 2004 07:20:40 -0700 (PDT) Message-ID: Date: Mon, 26 Jul 2004 11:20:40 -0300 From: smota To: pgsql-jdbc@postgresql.org Subject: Charset problem on WHERE clause Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/280 X-Sequence-Number: 10664 Hi, I'm pretty new to PostgreSQL as well to it's JDBC driver. For now I'm using PostgreSQL 7.3.6 version under Red Hat ES 3.0. The database is created with SQL_ASCII encoding. I'm retriving data from the database with the pg74.214.jdbc3.jar driver. Some fields contains values with accents (characters like =C7, =C3, =D5, et= c.) ... I've set the connection string with jdbc:postgresql://10.100.1.11:5432/mydatabase?charSet=3DLATIN1 On java code I must get the fields with new String(result.getBytes(1),"ISO-8859-1") to have accentued chars correctly displayed ..... My problem is when I get an accentued character on a WHERE expression, it doesn't return any value. I've tried field IN (to_char('MANUTEN=C7=C3O', 'LATIN1')) ... but with no s= uccess. Any idea or help on this? On time ... using pgAdminIII or the line command psql tool both works with the accents on WHERE clause. Thanks