Skip to Main Content

Java Programming

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!

UTF-8 to UCS 2 Encoding Conversion

807605Sep 11 2006 — edited Aug 6 2007
Hi!
we have data with different encoding in our Oracle DB.
ie utf-8,ucs-2 ,iso etc...

We need to retrieve the data from the database and display the result.
when i m retrieving the data and doing rs.getString(ColName) its throwing exception saying that cant not convert bet' UTF-8 to UCS-2 Format.

When I do a getBytes..I am not getting any exception but the result is not in a readable form...v hv to display the data.

Any idea hw to convert bet' UTF=8 to UCS 2??

thanks in Advance!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2007
Added on Sep 11 2006
11 comments
2,412 views