[Seaside] 3.9 and encoding

Philippe Marschall philippe.marschall at gmail.com
Wed Feb 28 08:22:36 UTC 2007


2007/2/28, Avi Bryant <avi at dabbledb.com>:
> On 2/27/07, Philippe Marschall <philippe.marschall at gmail.com> wrote:
>
> > An other option is to have utf-8 strings in your image. On Squeak 3.9
> > this requires WAKom and a modified version of KomHttpServer not
> > publicly available.
>
> What changes were needed?  Can you post them?

The basic problem is that #unescapePercents changed semantics from
Squeak 3.8 to 3.9. To work around that you need to change the sends
from
#unescapePercents
to
#unescapePercentsWithTextEncoding: nil
in HttpRequest >> #initStatusString: and HttpRequest class >>
#decodeUrlEncodedForm:multipleValues:

> > This has the advantage that you don't need to do
> > encoding conversion it has however the disadvantage that it won't work
> > with the debugger, #size doesn't work and directly indexing into the
> > string (creating substrings) won't work too.  Additionally you need to
> > convert you string literals to utf-8 (unless they're ascii).
>
> ... exactly as in Squeak 3.7, right?

Exactly

> Avi
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the Seaside mailing list