[Seaside] How to set the charset in WAHtmlErrorHandler

Philippe Marschall philippe.marschall at gmail.com
Thu Sep 6 15:22:59 UTC 2018


Something like

self handler charSet

is probably better than hard coding utf-8.

Cheers
Philippe



On Thu, Sep 6, 2018 at 3:24 PM Johan Brichau <johan at inceptive.be> wrote:
>
> Something along these lines:
> E.g. In the handleDefault: method:
>
>         errorDialog := WARenderCanvas builder
>                                         fullDocument: true;
>                                         rootBlock: [ :root | root beHtml5; title: anException description ];
>                                         render: [ :html |  … whatever you want ... ].
>
>         self requestContext respond: [ :response |
>                 response
>                         internalError;
>                         contentType: ((WAMimeType textHtml) charset: 'utf-8’);
>                         nextPutAll: errorDialog ]
>
>
> warning: coded in email editor ;)
> Take a look at WAHtmlErrorHandler as well
>
> cheers
> Johan
>
> > On 6 Sep 2018, at 14:50, jtuchel at objektfabrik.de wrote:
> >
> > Hi there,
> >
> >
> > I must be sitting on my brain at the moment...
> >
> > How do I set the charset=utf-8 header in a WAHtmlErrorHandler subclass?
> >
> >
> > Joachim
> >
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


More information about the seaside mailing list