• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Arabic Character Problem

 
Ramachandran Sreejith
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
author
Saloon Keeper
Posts: 4014
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use bytes/streams instead of strings when encoding's involved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic