*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Author

Character Encoding on Pc and iSeries server

Esteban Nunez
Greenhorn

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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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: http://aspose.com/file-tools
 
subject: Character Encoding on Pc and iSeries server
 
Similar Threads
Encoding in Java file
problem with UTF-8 file creation
Confusion in Java encoding
setting Property values twice
multiple language support in one XML