[Seaside] How to set the charset in WAHtmlErrorHandler

Johan Brichau johan at inceptive.be
Thu Sep 6 13:24:33 UTC 2018


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



More information about the seaside mailing list