HTTP Request encoding(euc-kr)

Describe the problem/error/question

Hello, this is my first post on the n8n community.

I am a new user who has just started using n8n with a self-hosted setup.

While trying to do some website scraping with n8n, I found that the site I want to scrape is encoded in EUC-KR. After looking through some posts, I noticed that n8n uses UTF-8 as the default encoding. In this case, I need some help on how to handle this. Since iconv-lite does not support EUC-KR, I’m unable to convert it.

What is the error message (if any)?

Text corruption occurs

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.55.3
  • **Database (default: SQLite):**postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker compose
  • Operating system: ubuntu 22.04LTS

Hi @jeongmin_Suh,

Welcome to the community!

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


Yes, that’s right! HTTP Request node uses UTF-8 encoding by default so a workaround is to download the content as a binary file in the HTTP Request node and then use the Extract from File node to read the binary data using the correct encoding.

n8n supports encodings supported by inconv which supports EUC-KR so even though it’s not listed in the File Encoding dropdown, you can switch to the Expresion tab and enter the encoding directly, which should work! You can find a full list of encodings supported by the library here: iconv - npm

image

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