Execute and distribute unicode problem

Thanks for your answer.

In the label component, you want me to run my script in a runScript expression ?

I would use the actionPerformed method of a generic button adjacent to the text labels…

1 Like

Yeah, Phil’s suggestion is what we’d use here for testing.

With my script, the subject name shows correctly in label component.

attachmentName=db['title']+u" - Suivi hebdomadaire de performance du chauffage - "+system.date.format(system.date.now(), "yyyy-MM-dd")+u".pdf"

Great, now you need to see what the gateway thinks it is.

In my gateway, I have errors below.

I found file below in my SMTP queue which can help us.
SMTP queue.txt (3.1 KB)

Did you get any logging from the SMTP.Manager logger set to debug? That’s what we’re looking for in the logs.

Also, I see the file you uploaded looks like your mail server is using UTF-7 instead of UTF-8. This might be the source of the problem, since Java does not support the older UTF-7 encoding.

1 Like

Hi,
My code is correct.
I use unicode() function to my email subject and my attachment name.
To solve the problem I’ve changed encoding in my recipient webmail to UTF-8.

Thanks for your help.

1 Like