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