• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

quick question on DB2 JDBC encoding

 
Kishore Dandu
Ranch Hand
Posts: 1934
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a JDBC type4 driver from IBM for DB2, connecting to DB2 on the mainframe.

I am having issues with encoding and i believe it has to do with telling the driver to use specific encoding. Let me know if any one has some idea how to set this property to the driver.
 
Scott Selikoff
author
Saloon Keeper
Posts: 3890
15
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume the issue for encoding is when you work with String objects, correct? You could use streams to set/read the read data such as getCharacterStream() method.
 
Kishore Dandu
Ranch Hand
Posts: 1934
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I started using Eclipse provided JVM and it started working like a charm. I am not understanding the logic behind that.
 
Scott Selikoff
author
Saloon Keeper
Posts: 3890
15
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Encoding can be set as a JVM argument so its likely Eclipse is doing something different than how you were running it before.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic