Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does someone has the same problem like me ?

 
zheng yu
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TOMCAt3.2.1+Oracle8.1.7(classes12.zip) + JDK1.2.2
In my program , i use createStatement( TYPE_SCROLL_INSENSITIVE ,CONCUR_READ_ONLY ) to get scrollable resultset. And i use first() /last() /absolute() to implement my pager logic .
The problem is :
when i use getString(index) to get field data( defined as VARCHAR2) , what i get is its INNER CODE . for example :
for a field value like "1234" , what i get is "0x31323334"
Does some one face same problem like me ? does this problem has something to do with locale setting & charset ? My Locale is JP .
Thankx
ZY
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure exactly, but I think the problem has been reported before and was due to using createStatement( TYPE_SCROLL_INSENSITIVE ,CONCUR_READ_ONLY ) rather than just createStatement().
If this can't solve you problem, you'll have to parse the text yourself (not recommended) or hopefully someone else has a suggestion...
Dave.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic