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 AAFD7D1B4E5 for ; Mon, 26 Jul 2004 18:30:49 -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 33279-03 for ; Mon, 26 Jul 2004 21:30:48 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by svr1.postgresql.org (Postfix) with ESMTP id 23803D1B3BB for ; Mon, 26 Jul 2004 18:30:33 -0300 (ADT) Received: by mproxy.gmail.com with SMTP id 79so115520rnk for ; Mon, 26 Jul 2004 14:30:33 -0700 (PDT) Received: by 10.38.104.15 with SMTP id b15mr37717rnc; Mon, 26 Jul 2004 14:30:33 -0700 (PDT) Message-ID: Date: Mon, 26 Jul 2004 18:30:33 -0300 From: smota To: pgsql-jdbc@postgresql.org Subject: Re: Charset problem on WHERE clause In-Reply-To: <41057305.8070700@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41057305.8070700@opencloud.com> 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/301 X-Sequence-Number: 10685 Hi, Thanks Kris for your fast response .... I've recreated the database using LATIN1 and everything is working just fine. > I wonder if it's worth supporting the charSet parameter even for >= 7.3: > set client_encoding explicitly to SQL_ASCII (which I believe means "no > translation") and do the translation to Unicode on the JVM side using > whatever charset the user provided. I think most of the encoding details > are now isolated from the rest of the protocol logic, so it wouldn't be > a very invasive change. I really don't see this as a good idea :O .... With the LATIN1 charset I didn't use Java conversion (with new String(rs.getBytes(1)....etc. etc.) my code was cleaner and easier, so, It was a good thing make me use the correctly encoded database. :) Thanks