You may try this: (CrLfFileStream readOnlyFileNamed: fullPath) converter: Latin1TextConverter new; contentsOfEntireFile Or if you want more explicit control: (MultiByteFileStream readOnlyFileNamed: fullPath) lineEndConvention: #crlf; converter: Latin1TextConverter new; contentsOfEntireFile. Nicolas 2009/11/30 Tudor Girba <tudor.girba@gmail.com>:
Hi,
I know that there was a long discussion regarding opening of files, but I did not see a resolution.
I would like to be able to read files regardless of the encoding. I am using this code: (CrLfFileStream readOnlyFileNamed: fullPath) contentsOfEntireFile"
but I get an error when I reach a file in Latin 1 (ISO-8859-1).
How can I safely deal with this issue without getting hurt?
Cheers, Doru
-- www.tudorgirba.com
"When people care, great things can happen."
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project