Describe the problem/error/question
Hi,
I’m facing an encoding problem while sending email with gmail node for every char with and accent (é,à,ô,î…). I noticed that this problem doesn’t occurs when i’m directly writing inside the node “subject” input but only when i pass this subject as an expression (from a code node, and before, from a datatable). On the n8n webUI, i do not encounter this encoding problem (even in the datatable).
It looks like a double UTF-8 encoding issue but i can’t resolve it, even while using JS tricks like unescape(), decodeURI() or even with replacing in the string with something like .replace(/é/g, ‘é’), both from the gmail node or the code block before.
Note: this encoding problem only occurs on email subject, not on the html content.
Thanks in advance for any help on this topic
What is the error message (if any)?
No error messaage but email subject has encoding issue with “é”,”è”,”à”,”ç”,”ô”…
Please share your workflow
Share the output returned by the last node
In web preview mode, output is correct. But when i receive the email. Subject containing a french word like “Actualités” appears like “Actualités”
Information on your n8n setup
- **n8n version: latest (**2.12.3)
- Database (default: SQLite): SQLite
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker (auto-hosted)
- Operating system: Ubuntu LTS on host - default image on container
