Re: How to set the charset in WAHtmlErrorHandler
Philippe Marschall <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CA+LFMPgH4oDRHiXnFUXfKbc9gOkdF8U_mjwgYaEBSp2zeyOWEA@mail.gmail.com> |
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 <[email protected]> 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, [email protected] 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 > > [email protected] > > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > _______________________________________________ > seaside mailing list > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside