On Jan 21, 2010, at 7:12 PM, Bert Freudenberg wrote: > On 21.01.2010, at 18:08, Ole Voß wrote: >> >> Uhm, ok, I get it ;-) >> >> I'll rephrase that... how do I ensure that a UTF-8 textfile will be read and >> recognised as such using Squeak (or Pharo) smalltalk? I was expecting some >> sort of decoding mechanisms or a method of telling Squeak this String or >> Stream is now utf-8. >> >> A hint? Anybody? Please? Pretty Please? > > aStream converter: UTF8TextConverter new. > > (which in Squeak is the default nowadays, just inspect a new file stream ...) > > - Bert -
Thank you Bert! Although the above didn't work as such, it set me on the right track! This solution worked for me: stream := MultiByteFileStream readOnlyFileNamed: commentfilepath. I'm fairly new to smalltalk, so thank you for bearing with me :-) Ole._______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners