[Seaside-dev] about Grease codecs

Andreas Raab andreas.raab at gmx.de
Tue Mar 30 07:35:24 UTC 2010


On 3/29/2010 11:29 PM, Lukas Renggli wrote:
>> How are Codecs meant to be implemented exactly?  The tests are not
>> clear, and it looks like they are supposed to convert only to and from
>> ISO-8859-1.
>
> Codecs are implemented like this:
>
>     decoder: something -->  internal encoding
>     encoder: internal encoding -->  something
>
> One of the two encodings is always the internal encoding of the
> Smalltalk you are using. In case of Pharo/Squeak this is obviously
> ISO-8859-1.

I'm probably missing something here but shouldn't this be Unicode? 
Squeak (and as a result Pharo) uses Unicode internally, so why would the 
internal encoding be "obviously" ISO-8859-1? Doesn't that also imply 
that most actual conversions (Mac Roman, UTF-8) are lossy in general?

Cheers,
   - Andreas


More information about the seaside-dev mailing list