Hi Matthew,
I converted the NON-ASCII Strings into ASCII Strings using UTF8 byte
array.
Enclosed is the code snippet I used..
byte[] nameByte = name.getBytes("UTF8");
this.name = new String(nameByte, "8859_1");
To retrieve the Japanese characters, I had to do the reverse.
byte[] nameByte = name.getBytes("8859_1");
this.name = new String(nameByte,"UTF8");
This solution works for most languages such as Japanese Shift_JIS,
Chinese BIG5 or GB2312.
hth,
Sukesh
On Mon, 2004-04-12 at 20:27, Matthew Baird wrote:
> I am very interested! Please send to me and maybe to the group so it can be
> documented.
>
> Thanks a lot,
> Matthew
>
> -----Original Message-----
> From: Sukesh Garg [mailto:
> Sent: Monday, April 12, 2004 4:59 PM
> To: OJB Users List
> Subject: Re: Japanese Support
>
> I have been able to resolve it. If anyone is facing a similar problem i would be
> glad to share the solution.
>
> Thanks,
> Sukesh
>
> On Mon, 2004-04-12 at 11:55, Sukesh Garg wrote:
> > Hi,
> >
> > Is it possible to use ODMG/OJB to support the Japanese character set?
> > We have OJB running smoothly for English. When we attempt to query
> > Japanese text, it gives the following error...
> >
> > org.odmg.QueryInvalidException: expecting '"', found '*'
> > at org.apache.ojb.odmg.oql.OQLQueryImpl.create(Unknown Source)
> > at org.apache.ojb.odmg.oql.OQLQueryImpl.create(Unknown Source)
> >
> > The query is select tunnel from com.codaware.Address where name like
> > "*ããããããã*" order by name
> >
> > I would really appreciate any help/pointers.
> >
> > Thanks,
> > Sukesh
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]