wood burning stoves 2.0*
The moose likes JDBC and the fly likes JDBC unicode conversion issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC unicode conversion issue" Watch "JDBC unicode conversion issue" New topic

JDBC unicode conversion issue

Bob Moor

Joined: May 24, 2010
Posts: 7
Hi All,

My database(Oracle 10g) characterset is set to ISO-8859-6(AR8ISO8859P6) to store arabic characters.
When I query the database, JDBC Converts the data from the database character set to Unicode.
Because of this unicode conversion some of the characters are lost(translated to ?)
same behavior for both oci and thin..

In JAVA Is there any solution to retrieve the data in database format(without doing any unicode conversion)?
Is there any driver available retrieve the data from oracle in database format( encoding)?


Paul Clapham

Joined: Oct 14, 2005
Posts: 18541

Hi, Bob. This post looks like a duplication of this post on another forum. Could you please have a look at our FAQ entry entitled BeForthrightWhenCrossPostingToOtherSites? Thanks.
Bob Moor

Joined: May 24, 2010
Posts: 7
Hi Paul,

Sorry for that. I will follow the faq
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JDBC unicode conversion issue
Similar Threads
getString() in ResultSet
Getting data stored in an Oracle database into HTML SELECT Control
getCharacterStream puzzler
Encoding Conversion using JDBC
character convertion in java