× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:
Replies:

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

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.