wood burning stoves*
The moose likes JDBC and the fly likes Arabic text from oracle database into servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Arabic text from oracle database into servlet" Watch "Arabic text from oracle database into servlet" New topic
Author

Arabic text from oracle database into servlet

carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

Hi i have got arabic text and english text stored in the oracle database when i retrieve this into a servlet as xml file the arabic part is shown as ???
Do i need to set the NLS_LANGUAGE for the thin driver i am using or it is some setting with the java charsetEncoding() method.

how do i set the nls_lanuguage, and with what value do i need to set so that the english and arabic both get displayed...

suggest me to solve this issue..
carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

after google found that i need to set the java -Doracle.jdbc.defaultNChar=true applicationName
but i dont no how do i set it...
can anyone explains me what is teh proceudre to retrieve the Nchar values from database.
[ November 12, 2008: Message edited by: ruquia tabassum ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Arabic text from oracle database into servlet