How can this be done? If at all...
I converted msg.payload to latin1 with buffer.toString , set msg.headers before the httpresponse with
msg.headers=[{'content-type':'text/xml; charset=iso-8859-1'}];
The client still receives in the text/html; charset=utf-8. headers.
I found older question on the internet with explanations on fixes for vulnerabilites in express, the underlying web server. unfortunately our legacy system flips on utf-8, even if its's only mentioned in the headers...