my dog learned polymorphism
The moose likes Java in General and the fly likes Character Encoding on Pc and iSeries server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Character Encoding on Pc and iSeries server" Watch "Character Encoding on Pc and iSeries server" New topic

Character Encoding on Pc and iSeries server

Esteban Nunez

Joined: Aug 14, 2010
Posts: 3
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

Joined: Oct 14, 2005
Posts: 19973

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.
I agree. Here's the link:
subject: Character Encoding on Pc and iSeries server
It's not a secret anymore!