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 8DFB93A635C for ; Fri, 14 Jan 2005 00:04:59 +0000 (GMT) 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 55723-04 for ; Fri, 14 Jan 2005 00:04:55 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 9055D3A62D7 for ; Fri, 14 Jan 2005 00:04:56 +0000 (GMT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CpExP-0003wm-00; Fri, 14 Jan 2005 13:04:51 +1300 Message-ID: <41E70C9F.90106@opencloud.com> Date: Fri, 14 Jan 2005 13:04:47 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0 (X11/20041228) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jerome Colombie Cc: Kris Jurka , pgsql-jdbc@postgresql.org Subject: Re: Encoding Problem References: <41E59519.7080807@gmx.ch> <41E59C1B.6050804@opencloud.com> <41E7059D.8040001@gmx.ch> In-Reply-To: <41E7059D.8040001@gmx.ch> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/105 X-Sequence-Number: 11985 Jerome Colombie wrote: > byte[] temp = test.getBytes(); getBytes() uses the JVM's default encoding to convert from the internal string char[] representation, which might be wrong. More interesting is test.getBytes("UTF-8") or test.getChars() or test.charAt(x) -O