n8n-io / n8n

Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
https://n8n.io
Other
48.52k stars 7.61k forks source link

Encoding for some characters in IMAP trigger works incorrectly #10230

Closed workfloows closed 1 week ago

workfloows commented 3 months ago

Bug Description

For IMAP trigger node in format "Simple" some characters are encoded incorrectly. For example, letter ş is converted to character º.

Below example for name "Eşref" being converted to "Eºref".

Incoming email in mode "Simple"

And the same email in web client

encoding-source

To Reproduce

  1. Set "Format" field to "Simple" in IMAP trigger.
  2. Execute IMAP trigger for email message with character ş.
  3. Observe fields textHtml and textPlain for wrongly encoded characters.

Expected behavior

Characters should be encoded correctly.

Operating System

Ubuntu 22.04.2 LTS

n8n Version

1.49.0

Node.js Version

20.14.0

Database

SQLite (default)

Execution mode

main (default)

Joffcom commented 3 months ago

Hey @workfloows,

Thanks for the report, I suspect this issue may be fixed with this PR: https://github.com/n8n-io/n8n/pull/10046 once reviewed and merged.