• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to specify arabic encoding in jndi

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic