• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to specify arabic encoding in jndi

 
anitha meena
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I configured the java application to read the database configuration from jndi
I have some arabic data in the database so i have to specify the unicode as well as characterEncoding , i have made the below




but am getting error Cannot connect to DB,


it works if i change the above to the following




but the arabic text will apear in a form of question marks (???)


can you let me know how to fix that , i mean how to specify the type of characterEncodning in the jndi

this is my jndi contents


 
Campbell Ritchie
Sheriff
Pie
Posts: 49796
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which operating system are you using? Windows only displays a restricted range of characters at the command line.

This is more difficult a question than we usually see on beginner's; since it is probably more about displays than databases, I shall move you to the intermediate forum.
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anitha,


Try setting the useEncoding and characterEncoding properties inside <connection-property> rather than in the connection-url. Ihvn't tried it. check it.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic