[Seaside-dev] about Grease codecs

Paolo Bonzini paolo.bonzini at gmail.com
Tue Mar 30 07:03:52 UTC 2010


On Tue, Mar 30, 2010 at 08:29, Lukas Renggli <renggli at gmail.com> 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.

Okay, we will use UnicodeStrings in gst except for the null codec.

> As far as I know Pharo and Squeak has no way to convert between two
> arbitrary codecs. You always have to go through the internal encoding
> first.

This doesn't mean Grease couldn't provide a method to do the
triangulation.  It can be twice as fast in other dialects.

Paolo


More information about the seaside-dev mailing list