contentsOfEntireFile

Andreas Raab andreas.raab at gmx.de
Sat Apr 8 08:36:54 UTC 2006


Well, what are trying to read? Bytes? Use binary mode. Text? Depends on 
the encoding. If it's Latin1 use Latin1TextConverter, for Mac Roman use 
MacRomanTextConverter, for shift-jis use ShiftJISTextConverter, for UTF8 
use UTF8TextConverter etc. See subclasses of TextConverter.

Cheers,
   - Andreas

Zulq Alam wrote:
> You are right. I filed in UTF8InputFix.2.cs and I now get a Invalid utf8 
> input detected error.
> 
> How can I guard against this? I can't guarentee this character wont end 
> up in input data.
> 
> Z.
> 
> Andreas Raab wrote:
>> This is most likely related to http://bugs.impara.de/view.php?id=3440.
>>
>> Cheers,
>>   - Andreas
>>
>> Zulq Alam wrote:
>>> | example |
>>> example := FileStream fileNamed: 'example.txt'.
>>> Transcript show: example contentsOfEntireFile.
>>> example close.
> 
> 
> 




More information about the Squeak-dev mailing list