[Seaside] Swazoo - Improper store into indexable object

Janko Mivšek janko.mivsek at eranova.si
Wed Jul 25 08:30:47 UTC 2007


Hi Boris,

Boris Popov wrote:
> Together with other fixes I put in to support UTF8 via Swazoo the following seems to do the trick,
> 
> HTTPResponse>>entity: anEntity
>  entity := anEntity isString
>                ifTrue: [anEntity asByteArrayEncoding: #utf8]
>                ifFalse: [anEntity asByteArray].
> 
> Any plans to include support for UTF8 out of the box? I've heard the whole "Swazoo is just a server, 
> its up to you to figure out encodings", but not quite buying it personally having spent some time 
 > hacking it to work ;)

You heard well and I still argue that utf8 is a duty of web framework, 
because it knows better when to convert strings and when not. That 
specially true on the input side. Swazoo just server content as it been 
pure binary. Not doing utf8 is therefore an inefficiency of Seaside, not 
Swazoo, IMHO. And as you actually did already, it is simple to add that 
on output side. Just that you need to do similar on input side too, 
which is a bit more demanding.

Best regards
JAnko



-- 
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si


More information about the Seaside mailing list