Using Latin1TextConverter [was: Ideas for a refactoring with traits?]

Klaus D. Witzel klaus.witzel at cobss.com
Thu Sep 6 17:09:34 UTC 2007


Hi Andreas,

on Thu, 06 Sep 2007 18:11:16 +0200, you wrote:

> Klaus D. Witzel wrote:
>> May I add, copy&paste via the clipboard (for example, from an external  
>> web browser) is sometimes not the same as opening a file from Squeak's  
>> host platform and asking for contentsOfEntireFile. Example contents:
>>  -  
>> http://sigmakee.cvs.sourceforge.net/*checkout*/sigmakee/KBs/Geography.kif
>> - http://sigmakee.cvs.sourceforge.net/*checkout*/sigmakee/KBs/People.kif
>
> That would likely be because the default character encoding for files  
> (UTF-8) is  different from the default encoding of your web browser  
> (ISO-8859-1). If you change this to say,
>
> 	file := FileStream readOnlyFileNamed: 'People.kif'.
> 	file converter: Latin1TextConverter new.
> 	file contents.
>
> you should get the same result.

That did it. Problem solved, project in better shape now.

I owe you a beer, Andreas. A traits-free one :)

/Klaus

> Cheers,
>    - Andreas
>
>





More information about the Squeak-dev mailing list