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 4D3793A4490 for ; Wed, 12 Jan 2005 21:52:48 +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 82497-09 for ; Wed, 12 Jan 2005 21:52:36 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id DAF4D3A4FA7 for ; Wed, 12 Jan 2005 21:52:36 +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 1CoqPo-0003Yf-00; Thu, 13 Jan 2005 10:52:32 +1300 Message-ID: <41E59C1B.6050804@opencloud.com> Date: Thu, 13 Jan 2005 10:52:27 +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: pgsql-jdbc@postgresql.org Subject: Re: Encoding Problem References: <41E59519.7080807@gmx.ch> In-Reply-To: <41E59519.7080807@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: 8bit 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/93 X-Sequence-Number: 11973 Jerome Colombie wrote: > I tried different server encodings like sql_ascii or latin1 but I always > get these strange characters in pgAdmin III and with jdbc. I also tried > to specify the charSet property with the connection string in jdbc but > that didn't help. > Does anyone know how I can get the correct strings with umlaut (e.g. > ä,ö,ü) in java? > I thought this problem would be solved in the newer versions, but even > in rc2 the problem still exists. It should "just work" when using a server encoding of LATIN1 (I assume you can represent umlaut-ed characters in LATIN1?) or UNICODE. Can you provide some example code that fails? Also, which driver version are you using? -O