[Seaside] Seaside and Squeak 3.8

Pavel Krivanek squeak3 at continentalbrno.cz
Thu Mar 31 13:57:48 CEST 2005

Strange, I've got the newest version of Squeak and Seaside (with Czech
environment). With this modification it works well.


----- Original Message ----- 
From: "Bany, Michel" <mbany at cincom.com>
To: "The Squeak Enterprise Aubergines Server - general discussion."
<seaside at lists.squeakfoundation.org>
Sent: Thursday, March 31, 2005 11:32 AM
Subject: RE: [Seaside] Seaside and Squeak 3.8

> Seaside cannot work correctly with MultiStrings. If any
> component renders some MultiString, the resultant page has
> wrong encoding. Try attached sample.

Your example works fine by me.

I believe it all depends on what you have in method
WAAbstractHtmlBuilder class>>encode:
and this depends on what version of Seaside you are using.

I think the right code should be

encode: anObject
| charOrString |
^ String streamContents:
[:s |
anObject asString do:
[:char |
charOrString :=
HtmlCharacters at: char asInteger + 1
ifAbsent: [char asCharacter].
charOrString isString
ifTrue: [s nextPutAll: charOrString]
ifFalse: [s nextPut: charOrString]]]

Hope this helps,
Seaside mailing list
Seaside at lists.squeakfoundation.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WAAbstractHtmlBuilder class-encode.st
Type: application/octet-stream
Size: 568 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20050331/69065a73/WAAbstractHtmlBuilderclass-encode.obj

More information about the Seaside mailing list