dcsimg
How can I read Arabic from Database in my java programme through JDBC?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Harpal_Singh
Posted On:   Thursday, September 19, 2002 01:07 AM

What I am doing is reading Arabic text from a table manupulating it and forming another string and putting it back to another table. What extra steps I need to take to ensure that java can fetch Arabic string from the database,manipulate it and then put the new Arabic String back to another table? OR I need not do anything because the jdbc driver takes care of the conversion?

Re: How can I read Arabic from Database in my java programme through JDBC?

Posted By:   Christopher_Schultz  
Posted On:   Friday, September 20, 2002 06:37 AM

If you have your character set currectly configured and a JDBC driver that works well (perhaps Oracle?) you might be able to just use ResultSet.getString("column_name") and be okay.



If that does not work, you may have to get each column value as a byte[] and construct a new String object and specify the encoding.



-chris
About | Sitemap | Contact