[Seaside] Internationalization

Frank Mueller frank at mweb.de
Fri Sep 17 16:08:45 CEST 2004


> and displayed on the HTML page. Then I added an input field and
> a submit button.
>
> I enter my adress which is "Hauptstraße" which is the german form
> for "main street". This word also has an $ß (ASCII code 167) in it and
> when the submit button is pushed in the browser it is sent back to
> Seaside
> as a Unicode string with two characters. (Character values 195  and 159).
> Since these were encoded again I get "æuuml;" in the input field, which
> then looks like this: "Hauptstraæuuml;e" in the edit field. This is in IE
> with Encoding as UTF-8. When I use Firefox I get the same result on the
> server, but it displays the edit field value as "Hauptstra?üe".

Hi Torsten,

I've first tried it the same way (change the encoding) but for buttons
the encoders class method is used. My workaround know is to use the
method #squeakToIso for strings. All my texts are in one class per locale
and I retrieve them through class methods. So getting the label for a
button like yours would look like

RmsResourceDeDE class>>labelMainStreet
    ^ 'Hauptstraße' squeakToIso

I only do this for strings with umlauts or the sharp s.

Hope this helps. Or just send a mail.

mue

-- 
**
** Frank Mueller / Oldenburg / Germany
**
** frank at mweb.de    http://www.mweb.de
**



More information about the Seaside mailing list