ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Henrique Ferreira e Silva <dhsi...@gmail.com>
Subject Re: handle international characters
Date Sat, 22 Oct 2005 12:37:40 GMT
Hi Scott,

Well, as far as i know, all jdbc drivers  take the database encoding
as the default one and that makes sense to me.
What is your database encoding? It's likely to not be UTF8 based on
what you've just said.

Cheers,
Daniel Silva.

On 10/21/05, Scott Zhu <scottzhu@gmail.com> wrote:
> Thanks, Daniel. I actually didn't think the problem would be in ibatis, but
> I wanted to be sure I didn't miss any obvious settings. I was using
> Weblogic's (bea) sql server type 4 driver. I found later that I have to set
> "CodePageOverride=UTF8" in the driver to get this to work. I don't quite
> understand however, why do I have to set this, shouldn't this be the default
> option in JDBC drivers? I'd be interested if you know more of this. But
> thanks for your help regardless.
>
>
>
> On 10/21/05, Daniel Henrique Ferreira e Silva <dhsilva@gmail.com> wrote:
> > Scott,
> >
> > That UTF-8 thing just states the xml file character encoding. It's not
> > related to what get inserted into your database. You should look for
> > info on configuring your JDBC driver encoding or ways to work around
> > this within your database.
> >
> > Which database engine are you using?
> >
> > Cheers,
> > Daniel Silva.
> >
> > On 10/21/05, Scott Zhu < scottzhu@gmail.com> wrote:
> > > Hi, I tried to look this up in the user guide. I have to insert
> something
> > > into the database (SQL Server) with international characters. I tried to
> > > debug the code and I could see just before the ibatis query, the
> characters
> > > are preserved correctly. But those characters ended in the database as
> "?"s.
> > > The only related configuration I can see in the xml file is <?xml
> version="
> > > 1.0" encoding="UTF-8" ..> part. What am I missing here? Thanks.
> >
>
>

Mime
View raw message