Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D9C6E632CA9 for ; Thu, 14 Jan 2010 05:52:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71184-04 for ; Thu, 14 Jan 2010 09:51:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 554AA6325DE for ; Thu, 14 Jan 2010 05:51:52 -0400 (AST) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NVMMj-0002UA-Ma; Thu, 14 Jan 2010 22:51:45 +1300 Message-ID: <4B4EE933.4090706@opencloud.com> Date: Thu, 14 Jan 2010 22:51:47 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Mirco Attocchi CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC CharSet with SQL_ASCII References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.589 tagged_above=-10 required=5 tests=BAYES_00=-2.599, FH_DATE_PAST_20XX=3.188 X-Spam-Level: X-Archive-Number: 201001/15 X-Sequence-Number: 20211 Mirco Attocchi wrote: > Hi All, > I'm newest to this list (sorry for my bad english). > I've a question about charset with jdbc. > I've verified that my customer postgresql database is configured in > SQL_ASCII but when I read data I receive strange chars in some fields. > > Do you know how I can determinate the right character set? Well, the problem with SQL_ASCII is exactly that - there is no information about what encoding should be used to interpret the data. You will have to inspect the data stored in the database by hand and work out what encoding it is actually using. Then you should probably convert the database to use UNICODE or another appropriate encoding. -O