Hi Denis, Thank you for your answer. However, setting the UTF8TextConverter did not help because of a bug in upToAll:. I created a pull request to fix it: https://github.com/pharo-project/pharo/pull/632 I am afraid the CI failed for some reason I don't understand. :-/ The UTF8TextConverter was set by default, by the way. Bernhard
Am 30.12.2017 um 13:57 schrieb Denis Kudriashov <dionisiydk@gmail.com>:
Hi Bernhard.
The deprecation is still in progress. Now to setup encoding for MultiByteFileStream you should set #converter:
(FileLocator imageDirectory / 'test.txt') asFileReference readStreamDo: [ :s | s converter: UTF8TextConverter new. s contents ]
2017-12-30 13:27 GMT+01:00 Bernhard Pieber <bernhard@pieber.com>: I just saw that the FileStream hierarchy including MultiByteFileStream is deprecated. However, I can't find what file stream class should be used to read a UTF-8 encoded file instead. FileReference>>#readStreamDo: also uses MultiByteFileStream.
Can someone please point me to the right code?
Bernhard