[Seaside] How to set the charset in WAHtmlErrorHandler

Philippe Marschall philippe.marschall at gmail.com
Sat Sep 8 15:14:50 UTC 2018


On Fri, Sep 7, 2018 at 7:57 AM jtuchel at objektfabrik.de
<jtuchel at objektfabrik.de> wrote:
>
> Philippe,
>
> Am 06.09.18 um 17:22 schrieb Philippe Marschall:
> > Something like
> >
> > self handler charSet
> > is probably better than hard coding utf-8.
>
> agreed. Although WAHtmlErorHandler doesn't implement #handler. So I
> ended up with this:
>
>
>          response
>
>              internalError;
>
>              contentType: ((WAMimeType textHtml) charset: self requestContext charSet);
>
>
> Thanks for your tip.

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

Cheers
Philippe


More information about the seaside mailing list