This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Arabic Character Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Arabic Character Problem" Watch "Arabic Character Problem" New topic
Author

Arabic Character Problem

Ramachandran Sreejith
Greenhorn

Joined: Aug 09, 2008
Posts: 9

Hi

I have a problem with MySQL5.0, I am inserting arabic values to a table using Callable Statement ,but I am getting the following error
java.sql.SQLException: Incorrect string value: '\xD8\xB4\xD8\xA7\xD8\xB1...'
I have specified the Table & column chatacter set as utf8, I am able to insert the same arabic character using Prepared Statement


Please help..


Thanks
Sreejith Ramachandran
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700
    
    5

You can use bytes/streams instead of strings when encoding's involved.


My Blog: Down Home Country Coding with Scott Selikoff
 
Consider Paul's rocket mass heater.
 
subject: Arabic Character Problem
 
Similar Threads
how to convert mysql tables to utf-8 ?
problem inserting arabic data
Transformation Problem For Arabic/French Character : HTML to XML
Need Help ...to read text file.....???
Can't write arabic text into mysql database using mysql prompt