|
> From: Kelly Cookson > > We want to write text strings to a file in the IFS. We can write to the > IFS file, but each letter is separated what looks like a tab, and the end- > of-line characters are unusual. Whenever you see the "spaces" between characters, that's a good indication that you're looking at a Unicode file with a non-Unicode enabled viewer. Unicode encodes every character as two bytes, with standard ASCII text being the normal hex value preceded by x'00'. For example, upper-case 'A' ends up as x'00'-x'41'. ASCII text in general ends up with x'00' between every character, which shows up as dots or boxes depending on the viewer. To fix this, you need to either convert the file from Unicode to standard ASCII text, or create it as ASCII in the first place. I'm not certain how to assign the CCSID on an IFSFileWriter object; I know you can do it with an IFSTextFileOutputStream. Joe
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.