Re: [exim] Exim and MySQL with UTF-8 encoding

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Yves Goergen
Ημερομηνία:  
Προς: Arkadiusz Miśkiewicz, exim-users
Αντικείμενο: Re: [exim] Exim and MySQL with UTF-8 encoding
That's interesting, and it really does work! Thank you.

It probably has the side effect of reconfiguring the MySQL connection
for subsequent queries, after the first Sieve filter was fetched from
the database, but since no other part uses characters that would be
different in the default and UTF-8 encoding, it shouldn't matter.

Yves Goergen
http://unclassified.software

________________________________________
Von: Arkadiusz Miśkiewicz
Gesendet: Mi, 2017-11-08 22:31 +0100
On Wednesday 08 of November 2017, Yves Goergen wrote:
> Hello,
>
> How can I tell Exim to talk to the MySQL server with UTF-8 encoding?


Try something like:

${lookup mysql{SET NAMES utf8}{}}${lookup mysql{....}}