File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Arabic Character Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Arabic Character Problem" Watch "Arabic Character Problem" New topic

Arabic Character Problem

Ramachandran Sreejith

Joined: Aug 09, 2008
Posts: 9


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..

Sreejith Ramachandran
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

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

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: Arabic Character Problem
It's not a secret anymore!