Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 16208 invoked from network); 16 Sep 2007 21:26:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2007 21:26:58 -0000 Received: (qmail 24340 invoked by uid 500); 16 Sep 2007 21:26:44 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 24318 invoked by uid 500); 16 Sep 2007 21:26:44 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 24304 invoked by uid 99); 16 Sep 2007 21:26:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 14:26:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.249.95.37] (HELO mail.cruzio.com) (63.249.95.37) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Sep 2007 21:26:42 +0000 Received: from [192.168.0.103] (dsl-63-249-97-217.cruzio.com [63.249.97.217]) by mail.cruzio.com with ESMTP id l8GLQM6K073383 for ; Sun, 16 Sep 2007 14:26:22 -0700 (PDT) Message-ID: <46ED9FBF.5060209@cruzio.com> Date: Sun, 16 Sep 2007 14:27:27 -0700 From: Richard Yee User-Agent: Thunderbird 1.4 (Windows/20050908) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: Trying to insert hebrew text, mysql stores ??? instead References: <12695809.post@talk.nabble.com> <46EC95C7.1070204@cruzio.com> <12697634.post@talk.nabble.com> <12724076.post@talk.nabble.com> In-Reply-To: <12724076.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org There are no language settings for iBATIS. I suggest writing a test application that uses JDBC to insert into the database. I think you will find the same results as you are getting with iBATIS now. This would then mean that you need to look at the documentation for MySQL and configure it so that it knows that the character set you are sending using JDBC is Hebrew. Just because it is working with the mysql command line tool, doesn't mean it going to work the same with JDBC. -Richard startxxx wrote: > my database tables are set utf8 > netbeans debugger shows me the hebrew value of the string fine > one line before i insert it using iBatis. > > anything else? > > > Graeme J Sweeney wrote: > >> On Sun, 16 Sep 2007, startxxx wrote: >> >> >>> The database seem to hold hebrew text if I add it using the mysql query >>> browser and the hebrew >>> values show fine when selected from my application using iBatis - so I >>> have >>> all reasons >>> to believe it's not a mysql setup issue (unless I'm missing something in >>> between the lines).. >>> >> Assuming the database character set is 'hebrew' and not 'utf8', have >> you encoded the content correctly prior to inserting it? >> >> See java.lang.String(byte[] bytes, String charsetName) >> >> -- >> Graeme - >> >> >> > >