# Http endpoint and non utf-8 response

**URL:** https://discourse.nodered.org/t/http-endpoint-and-non-utf-8-response/101296
**Category:** General
**Created:** [17 June 2026 11:24 UTC](https://discourse.nodered.org/t/http-endpoint-and-non-utf-8-response/101296 "2026-06-17T11:24:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![JoW](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jow/32/108217_2.png) [@JoW](https://discourse.nodered.org/u/JoW)
#### Post date: [17 June 2026 11:24 UTC](https://discourse.nodered.org/t/http-endpoint-and-non-utf-8-response/101296/1 "2026-06-17T11:24:53Z")

</div>

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...

---

<div class="post-metadata">

### Author: ![JoW](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jow/32/108217_2.png) [@JoW](https://discourse.nodered.org/u/JoW)
#### Post date: [17 June 2026 12:47 UTC](https://discourse.nodered.org/t/http-endpoint-and-non-utf-8-response/101296/2 "2026-06-17T12:47:15Z")

</div>

Posted too soon, although might help somebody else.  
replaced the standard node-red http endpoint with this one from @inteli.city/node-red-contrib-http-plus

works a bunch!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [1 July 2026 12:47 UTC](https://discourse.nodered.org/t/http-endpoint-and-non-utf-8-response/101296/3 "2026-07-01T12:47:35Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
