Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

russian text(urgent)

843854Sep 16 2003 — edited Sep 18 2003
Hai friends,
I got a problem.I have an excel sheet which
contains english words and correponding russian
text.

I want to read each english word and
corresponding russian text and write into a
text file using a simple java program.I
wrote a program using JDBC to read data from
excel sheet and prints data on console as
well as write into a text file.

I am able to read data,but the russian
text is coming as '???????'(on console as well as
in text file).In the program,I used 'rs.getString(3)'
(3rd column of excel sheet contains russian text).
The string returned by 'rs.getString()' contains
simply '??????' instead of russian text.

I don't know what i have to do inorder to get russian text
instead of '?????' from 're.getString(3)'

I tried in different ways.I used 'rs.getBytes(3)'
instead of 'rs.getString()'.I also
used 'String.getBytes("8859_5")'.I also
tried by setting defualt properties as follows.

Properties p=new Properties();

p.setProperty("user.language","ru");
p.setProperty("user.region","RU");
p.setProperty("file.encoding","ISO8859_5");

Connection con=DriverManager.getConnection("jdbc:...",p)


But these ideas didn't work.I am not able to get the
required result.

can anybody help to solve this problem.



suryamohan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2003
Added on Sep 16 2003
2 comments
105 views