Hello Björn,

I guess it is the BOM at the beginning of file that confuse you, fread itself
knows nothing about BOM, or encoding whatsoever. since fread is a byte reader it
will read everything in verbatim.

I recommend emeditor (a very good unicode enabled text editor from japan), it
allows to save as various unicode format and many code page too.
A freeware edition is also available
http://www.emeditor.com/

Try saving files using utf8/utf16le/utf16be with and without bom, and then fread
to see the difference.

> Same results a,c and d do not display in J
> Even if all the files look the same in Notepad and e and b look the same in
> J they are not the same
> 
>   e=b
> |length error
> |   e    =b
> |[-0]
> 
>   e-:b
> 0
> 


-- 
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to