[Seaside] UTF-8 in form

radoslav hodnicak rh at 4096.sk
Sat Oct 9 09:58:05 CEST 2004


On Sat, 9 Oct 2004, Hilaire Fernandes wrote:

> (app genericName: lang) return an UTF-8 string.
>
> The call "html textInputWithValue: (app genericName: lang)..." renders a
> text form with an incorrect UTF-8 string
>
> The call html html: (app genericName: lang) renders correctrly the UTF-8
> string.

what does html text: (app genericName: lang) produce?

because #text: (and many other tags as well in end effect) do html
escaping (e.g. < to &lt; > to &gt; " to &quote; etc)

it can be that some of your utf8 chars are two-bytes wide and the *second*
byte gets escaped hence producing garbage as output. just a guess...

rado



More information about the Seaside mailing list