I hope someone here can shed some light on this issue!
I’ve been building different types of flows (both separate flows and subflows). Most of them end by sending the final material via email with the Gmail node.
The problem: special characters (Å, Ä, Ö – since I work for a Swedish company and all drafts need to be in Swedish). They look perfectly fine in the logs, but when I receive the email in Gmail, about 50% of the time they get replaced by numbers instead.
I’ve already tried adding a Code node before the Gmail node to enforce UTF-8 encoding, but the issue still occurs.
Has anyone run into this before, and do you know if there’s a reliable fix? Or is this just a common issue when handling these types of characters?
Hey! Can you pin some example data in the node before Gmail and the Gmail node, then highlight both nodes, Ctrl/Cmd+C and paste them here in a code box? (</> button)
Unfortunaly no, can’t pin the Gmail-nod because it lies as a tool for the agent. but can show you an example of the output from the AI Agent. Looks like this:
Have tried both and same problem occurs Have used claude and chatgpt to create some form of UTF encoding, looks like this (Same code used but for a different subflow, that’s why you see another inputname)
// Explicit UTF-8 encoding för svenska tecken
const analysis = $input.all()[0].json;
// Konvertera till Buffer och tillbaka för att säkerställa korrekt encoding
const analysisText = typeof analysis === ‘string’ ? analysis : JSON.stringify(analysis);
const utf8Buffer = Buffer.from(analysisText, ‘utf8’);
const cleanOutput = utf8Buffer.toString(‘utf8’);