[Seaside] How to set the charset in WAHtmlErrorHandler

Philippe Marschall philippe.marschall at gmail.com
Sat Sep 8 15:13:47 UTC 2018


On Fri, Sep 7, 2018 at 7:59 AM jtuchel at objektfabrik.de
<jtuchel at objektfabrik.de> wrote:
>
> Thanks Johan,
>
> Am 06.09.18 um 15:24 schrieb Johan Brichau:
>
> Something along these lines:
>     self requestContext respond: [ :response |
>         response
>             internalError;
>             contentType: ((WAMimeType textHtml) charset: 'utf-8’);
>
>
> This was exactly what was missing. WAMimeType>>#charset:
>
> btw: I just noticed Seaside has implementers of charset: and charSet: unfortunately not in a way that you can always use either one.
> Maybe a candidate for a "next time we do some cleanup" list.

That has been known for a while :-(

https://github.com/SeasideSt/Seaside/issues/745

Cheers
Philippe


More information about the seaside mailing list