Forums Register Login

how to specify arabic encoding in jndi

+Pie Number of slices to send: Send
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


+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
Anitha,


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

It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4139 times.
Similar Threads
JPA,/mysql/JBoss and a big head ache
Strange Persistence Unit deployment error in JBoss 6
GenericJDBCException: Cannot open connection
JBoss DBCP
Error while starting jboss(java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.j)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 05:17:19.