|
> -----Original Message----- > From: Blair Wyman > > Ahh, the problem is most likely the line: > out.write(line.getBytes()); > > String.getBytes() uses the file.encoding system property value (which > defaults ASCII) to encode the resultant byte array. > > Try > out.write(line.getBytes("Cp037")); Hmmmmmmmmmmmmm. Is this ALWAYS a way to convert Strings to EBCDIC? It's much less complicated than the AS400Text technique. The only difference would seem to be that is that the resulting array from getBytes is only the length of the String, while with the AS400Text technique, it's as long as the AS400Text definition. Joe "Learn Something New Every Day" Pluta
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.