Hi Eric,

all on OS/400,
just an example with a very common char, the '@' (at) sign read/write from/to a DTAQ and a file.
An RPG program write the char to a File with CCSID 500 (multilanguage), a CL program read the file and send it to a DTAQ.
The system CCSID is 500 but the LANGID is a non multinational ID.
The only way to get it correctly was to use, in the java job, a USRPRF that has an international LANGID set, changing the CCSID do not solve the problem.


As java do, a getString from a ResultSet convert it to the local language, a tipical example is trying to store images with a set/getString, you never receive the correct content back.

Already see that a read of a normal string from a ResultSet returns the hex value (EBCDIC) of the field (not able to find the cause), as solution just read as bytes and convert.

Just for info.

Ciao.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.