David:
Check the javadocs for Property.load()
"Reads a property list (key and element pairs) from the input byte
stream. The input stream is in a simple line-oriented format as
specified in load(Reader) and is assumed to use the ISO 8859-1 character
encoding; that is each byte is one Latin1 character. Characters not in
Latin1, and certain special characters, are represented in keys and
elements using Unicode escapes."
This may be getting in the way.
Perhaps wrapping IFSTextFileInputStream (to convert to Unicode) with
InputStreamReader, then wrapping that with BufferedReader()?
is = new IFSFileInputStream(file);
BufferedReader br = new BufferedReader(new InputStreamReader(is));
Then use br.readline() and set properties 1 at a time?
Not very elegant!
Please let us know how you solve this.
Bill Blalock
-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of David Gibbs
Sent: Monday, May 04, 2009 12:38 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Brain cramp: reading an IFS file from program running on PC
Blalock, Bill wrote:
Isn't CCSID 37 a North American flavor of EBCDIC? See
http://www-01.ibm.com/software/globalization/ccsid/ccsid37.jsp
It is. This is the CCSID I created the file with.
I think the read() method of IFSTextFileInputStream (instead of
IFSFileInputStream) would converted from EBCDIC to Unicode.
I tried using IFSTextFileInputStream also and got the same result :(
david
As an Amazon Associate we earn from qualifying purchases.