X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id EF1049FB21E for ; Thu, 31 Aug 2006 05:45:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 38497-06 for ; Thu, 31 Aug 2006 05:45:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 05FDF9FA5FC for ; Thu, 31 Aug 2006 05:45:20 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GIiAW-0005bG-Cl for pgsql-jdbc@postgresql.org; Thu, 31 Aug 2006 10:45:00 +0200 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Aug 2006 10:45:00 +0200 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 31 Aug 2006 10:45:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: Re: Encoding Problem Date: Thu, 31 Aug 2006 10:44:50 +0200 Lines: 30 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:i25WK6ZsEeAnAIVmp466q5Oyju0= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.683 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_NUMERIC_HELO, SPF_HELO_PASS, SPF_PASS X-Spam-Level: * X-Archive-Number: 200608/185 X-Sequence-Number: 15712 "meil parachorras" writes: > Example: > Class.forName("org.postgresql.Driver"); > String url = "jdbc:postgresql://localhost:5432/GE"; > Connection con = DriverManager.getConnection(url,"user","pass"); > Statement st = con.createStatement(); > sql = "INSERT INTO Auffinden VALUES ('1','München');"; > ResultSet res = st.executeQuery(sql); > con.close(); > > And I receive this error: > org.postgresql.util.PSQLException: ERROR: character 0xc383 of encoding > "UTF8" has no equivalent in "ISO_8859_5". You configured your database with a cyrillic alphabet. The error message just means that ü (u umlaut) does not exist in this cyrillic alphabet, you cannot write this character in cyrillic. This is NOT an encoding issue, it's a charset issue: this character does not exist in this charset, so there is no way you can insert it, whatever the encoding(s). You'll easily find more detailed explanations if you search the web. > How can I data with encoding ISO_8859_5 with JDBC senden? ?