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

Character Encoding on Pc and iSeries server

 
Esteban Nunez
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey there! well i ll try to be brief. I wrote some a java program that calls a RPG program on an IBM iSeries that encrypts passwords. if i run my java program from my pc the password encryptions goes well, but if i run the program on the iSeries the encryption gets messed.
I want to make you all note that the default encoding on my PC's jvm is UTF-8, but the on the iSeries is ISO-8859-1.
I connect to the iSeries via JTOpen driver. My guess is that i have somehow change the iSeries jvm encodingo to UTF-8 but it seems imposible since they recommend that you manage from your code. Hope someone can help me out. Thanks in advance!
 
Paul Clapham
Sheriff
Posts: 21298
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Encrypting a password shouldn't involve encoding between bytes and chars on any system. So if you're doing that, you are doing it wrong. And if you aren't doing that, then the encodings have nothing to do with your problem.

Speaking of your problem... it would help if you explained it. "Messed" isn't very precise, in fact it tells us almost nothing about the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic