I have set up Postfix with Dovecot and SquirrelMail on an Ubunutu 18.04 machine. Everything is working great, except for the display name with special characters.
In SquirrelMail, I have configured the Full Name to be Õäöü:
But when I receive the email in, e.g. Gmail, I can see the display name as "Õäöü" (with quotes):
It only happens when I have special characters in the name. If the name has only ASCII characters, there are no extra quotes added. Inspecting the message headers in both cases, you can see why this happens:
In case of Oaou:
From: Oaou <info@example.com>
In case of Õäöü:
From: "\"Õäöü\"" <info@example.com>
The special characters get encapsulated in double-quotes twice. Why does this happen, and how can I fix it?