contentsOfEntireFile

Zulq Alam zulq at orange.net
Tue Apr 11 00:29:37 UTC 2006


Text, but I don't know what encodings but that's more to do with not 
knowing the final shape of the application yet. Thanks for your help.

Z.

Andreas Raab wrote:
> 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