You're right. I think I know how I messed my thinking up. Did the test right in J6 and somehow differently in J8. My bad! I must have done the following in J6 and got suckered in with the zero bytes in J8 and incorrectly thought that the non-zero bytes at the front were UTF-8.
The thing that is a little awkward is that fwrite will convert DBCS to bytes where fread can't convert the bytes back to DBCS because there is no uncertain way for it to know that it should. It is up to us to convert the bytes back to DBCS. But that is the way is has to be. 6 u: fread 'test.txt' ∑ 1 2 3 3 u: 6 u: fread 'test.txt' 8721 32 49 32 50 32 51 I apologize for going off half-cocked. On Mon, Mar 25, 2013 at 5:25 PM, chris burke <[email protected]> wrote: > There is no change in the way J6/J7/J8 handle this. Try it in J6!I > > What is happening is that you are writing a unicode datatype to file, and > reading it back as characters, i.e. > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
