[Seaside] 3.9 and encoding

radoslav hodnicak rh at 4096.sk
Wed Feb 28 11:25:20 UTC 2007

On Wed, 28 Feb 2007, Norbert Hartl wrote:

>> If you run WAKomEncoded39 on Squeak 3.9 you will have strings with
>> (new) Squeak encoding in your image which is basically non-unified
>> unicode. For latin-1 characters this will be indistinguishable from
>> latin-1. If your database is utf-8 you need to encode your strings to
>> utf-8 when writing them to your database and decode your strings from
>> utf-8 when reading from the database (only to convert it back to utf-8
>> when generating html). You can configure the PostgreS database driver
>> to do this automatically for you.
> Oh, this seems quite easy. But I didn't found anything to configure
> in the Postgres driver. Do you have any hint?

Postgres supports communication with in various encodings, you can tell it 
what encoding are you using with the sql command

SET CLIENT_ENCODING TO "encoding here";

look in postgres docs for all supported encodings


More information about the Seaside mailing list