[Seaside] Seaside and Squeak 3.8

Bany, Michel mbany at cincom.com
Thu Mar 31 11:32:11 CEST 2005

> 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,

More information about the Seaside mailing list