# Hi, I'm using n8n 2.15.0 in Docker. My Read Binary File node reads an HTML file, passes it to a Code node where I decode the base64 with Buffer.from(item.binary.data, 'base64').toString('utf-8'), then send the text to WordPress via HTTP Request node. But 

**URL:** <https://community.n8n.io/t/hi-im-using-n8n-2-15-0-in-docker-my-read-binary-file-node-reads-an-html-file-passes-it-to-a-code-node-where-i-decode-the-base64-with-buffer-from-item-binary-data-base64-tostring-utf-8-then-send-the-text-to-wordpress-via-http-request-node-but/295721>\
**Category:** Questions\
**Created:** [May 14, 2026, 3:21pm UTC](https://community.n8n.io/t/hi-im-using-n8n-2-15-0-in-docker-my-read-binary-file-node-reads-an-html-file-passes-it-to-a-code-node-where-i-decode-the-base64-with-buffer-from-item-binary-data-base64-tostring-utf-8-then-send-the-text-to-wordpress-via-http-request-node-but/295721 "2026-05-14T15:21:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_White](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/michael_white/32/61968_2.png) [@Michael\_White](https://community.n8n.io/u/Michael_White)\
**Post date:** [May 14, 2026, 3:21pm UTC](https://community.n8n.io/t/hi-im-using-n8n-2-15-0-in-docker-my-read-binary-file-node-reads-an-html-file-passes-it-to-a-code-node-where-i-decode-the-base64-with-buffer-from-item-binary-data-base64-tostring-utf-8-then-send-the-text-to-wordpress-via-http-request-node-but/295721/1 "2026-05-14T15:21:26Z")

</div>

Hi, I’m using n8n 2.15.0 in Docker. My Read Binary File node reads an HTML file, passes it to a Code node where I decode the base64 with `Buffer.from(item.binary.data, 'base64').toString('utf-8')`, then send the text to WordPress via HTTP Request node. But the WordPress post content shows garbled characters. The HTML file is UTF-8 encoded. Any ideas?

---

<div class="post-metadata">

**Author:** ![nguyenthieutoan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nguyenthieutoan/32/120924_2.png) [@nguyenthieutoan](https://community.n8n.io/u/nguyenthieutoan)\
**Post date:** [May 15, 2026, 7:50am UTC](https://community.n8n.io/t/hi-im-using-n8n-2-15-0-in-docker-my-read-binary-file-node-reads-an-html-file-passes-it-to-a-code-node-where-i-decode-the-base64-with-buffer-from-item-binary-data-base64-tostring-utf-8-then-send-the-text-to-wordpress-via-http-request-node-but/295721/2 "2026-05-15T07:50:28Z")

</div>

Welcome @Michael_White to our community! I’m Jay and I am a n8n verified creator.

The garbled characters usually come from how the HTTP Request node sends the content to WordPress. Two things to check: first, make sure your HTTP Request body is set to `JSON` with `Content-Type: application/json` and the content field value is your decoded string directly (not re-encoded). Second, the WordPress REST API `content` field expects plain text or HTML, but it also accepts `{"raw": "your html string"}` format which handles encoding more cleanly. Also verify the decoded string itself looks correct by logging `console.log(decodedHtml.substring(0, 100))` in the Code node - if it’s already garbled there, the issue is in the file itself or the Read Binary File node config.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [August 13, 2026, 7:51am UTC](https://community.n8n.io/t/hi-im-using-n8n-2-15-0-in-docker-my-read-binary-file-node-reads-an-html-file-passes-it-to-a-code-node-where-i-decode-the-base64-with-buffer-from-item-binary-data-base64-tostring-utf-8-then-send-the-text-to-wordpress-via-http-request-node-but/295721/3 "2026-08-13T07:51:19Z")

</div>

Closed on August 13, 2026, 7:51am UTC

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