Imap node receiving email without UTF-8 encoding (nó Imap recebendo email sem codificação UTF-8)

Hi Guys, I created a flow that receives an e-mail via imap or gmail, and sends it to Notion, including saving the attachments in Google Drive, and sending the link to Notion, this whole part is Ok, but when I receive some e-mails that the imap node does not recognize the encoding, it sends the truncated text to notion,
I’ve tried everything that came to mind, from java script to even replace, but I haven’t found the solution.
If I open the email in my main box, which is served by “ultramail” or in Gmail itself, the text is written correctly, but when I run the IMAP NODE, it is truncated.

Could anyone give me ideas for correction, please.

my simple workflow if erro

My language is Brazilian Portuguese, but it seems that in some emails UTF-8 is not recognized and I lose all accented words, words with “Ç”, “ÃO”, “Í” etc…

Information on your n8n setup

  • n8n version: 1.72
  • Database (default: SQLite): radis, postgres
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): DOCKER
  • Operating system: Ubuntu 22
1 Like

Olá a todos, encontrei a solução utilizando o nó “n8n-nodes-text-manipulation”,
instalei o nó e configurei o action para decode html legacy, obtive o resultado esperado, adicionei o nó logo após o nó IMAP.

agradeço ao desenvolvedor do nó “n8n-nodes-text-manipulation”.

Segue fluxo com correção para ajudar quem estiver nesta situação.

Hello everyone, I found the solution using the “n8n-nodes-text-manipulation” node,
I installed the node and configured the action to decode html legacy, I got the expected result, I added the node right after the IMAP node.

Thanks to the developer of node “n8n-nodes-text-manipulation”.

Follow the flow with corrections to help anyone in this situation.

1 Like

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