In Pharo 1.4 i opened a FileSystemReadStream on a text file and transformed it to a String via aFileSystemReadStream contents asString.
My text files are UTF8 encoded and have those Windows (CR LF) linebreaks.
The resulting Pharo Strings have two linebreaks per text file line and some weird characters instead of german umlauts like Ä, Ö, Ü etc.
How can i correctly decode my text files in Pharo?
Don’t use FileSystemReadStreams in 1.4, they are not complete and buggy ;). Use FileStream instead.
It will return a
MultiByteFileStreamwhere you can set the line end convention and encoding: