French character are not recognized by HTTP Request

Hey;
I search in the forum but didn’t found any reference, anyway
when I do a HTTP Request on that page: Societe.com : RCS, siret, bilan, Entreprises par activité pour le département Rhone (69), which have lang="fr"
all the caracters é, è ê, … are replaced by �

it is because something is missing in my installation ?
could I bypass that directly inside n8n ?

Hi @JOduMonT, this will most likely be because the HTTP Request node uses UTF-8 encoding by default, but the screenshot uses ISO 8859-1 as per your screenshot.

So I’d suggest downloading the content as a binary file in the HTTP Request node and then using the Move Binary Data node to read the binary data using the correct encoding.

Example Workflow
{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://www.societe.com/liste-69.html",
        "responseFormat": "file",
        "options": {}
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "setAllData": false,
        "options": {
          "encoding": "iso88591"
        }
      },
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        680,
        300
      ]
    },
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://www.societe.com/liste-69.html",
        "responseFormat": "file",
        "options": {}
      },
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "setAllData": false,
        "options": {
          "encoding": "iso88591"
        }
      },
      "name": "Move Binary Data",
      "type": "n8n-nodes-base.moveBinaryData",
      "typeVersion": 1,
      "position": [
        680,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Move Binary Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hope this helps!

:kissing_cat: purrfecto!!
merci!, thankyou, muchas gracias

1 Like