|
I tried "out.write(line.getBytes("Cp037"));", but still get the same error.
Regards,
Marady Prak
Technical Support Specialist
Big Lots, Inc
300 Phillipi Road or P.O. Box 28512
Columbus, OH 43228
Phone: 614-278-7186 Fax: 614-278-4769
Email: mprak@biglots.com
"Joe Pluta"
<joepluta@PlutaBro To: <java400-l@midrange.com>
thers.com> cc:
Sent by: Subject: RE: Creating spooled
file with AS/400 Toolbox
java400-l-admin@mi
drange.com
11/28/2001 01:18
PM
Please respond to
java400-l
> -----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
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l
or email: JAVA400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
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.