Re: URGENT, Need Help Please

From: halse..vv.ntnu.no
Date: Sat Oct 30 2010 - 19:56:31 UTC


Hello.

In this case, cayenne probably uses java.lang.String all the way from your
web code and to the jdbc driver. So there should be no encoding/decoding
of the String in the cayenne layer.

Regards,
 - Tore.

>
> Dear Sir/Madam,
> please, I need your help
> I have a problem in encoding
> am developing a web application using jsf, cayenne and mysql database,
> my application is in arabic
> I have no problem in fetching arabic data from database.
> but when update or insert data in arabic through the application
> the arabic data is converted into "???????? "
> the, the logger write a query with "??????" instead of arabic data
> this is the console message
>
> INFO QueryLogger: --- will run 1 query.
>
> INFO QueryLogger: --- transaction started.
>
> INFO QueryLogger: UPDATE transactions SET comment = ? WHERE trn_id = ?
>
> INFO QueryLogger: [bind: '?????????', 11147]
>
> INFO QueryLogger: === updated 1 row.
>
> INFO QueryLogger: +++ transaction committed.
>
>
>
> I debuged, and found the the problem is when commiting changes through
> datacontext object
> i.e it's a cayenne problem not Java or jsf problem
> I had made all encoding setting in the poject,
> but still the problem exists
> please, I need your help.
> please reply
>
>
> thanks
> mahmoud sakr
> j2ee developer



This archive was generated by hypermail 2.0.0 : Sat Oct 30 2010 - 19:57:12 UTC