Unknown encoding: iso-8859-1

I was using this workflow normally, and for the past few days, I’ve been getting this error.

Information on your n8n setup

  • n8n version: 1.56.2
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Win 10

Hi @miguelraatz,

Thanks for sharing the workflow, could you explain a bit more about what your workflow does and where in the workflow you get the error, what the error says, etc? The more descriptive you are, the easier it is for the community to help :slight_smile:

1 Like

Hi.
Of course, the error occurs in the HTTP node when trying to download a .csv file.

1 Like

Hi @miguelraatz,

the error suggests that there’s an encoding mismatch between the HTTP request and the requested zip file. the n8n HTTP request node uses UTF-8 encoding by default and it looks like you’re trying to access a zip file that’s encoded in iso-8859-1.

I’m not sure why this is happening suddenly when it was working normally before though. Has something changed in the request or the ZIP file you’re requesting? Could it have been saved in a different encoding?

You can try converting the content type with a library like iconv-lite suggested in a similar issue here or try to specify the request headers suggested in this post. Could you try these out to see if that does the trick?


I tried using this approach, and it still didn’t work.

1 Like