Re: [exim] exim, mysql >= 4.1 and characters encoding

Góra strony
Delete this message
Reply to this message
Autor: Darton Williams
Data:  
Dla: exim-users
Temat: Re: [exim] exim, mysql >= 4.1 and characters encoding
On Thu, Aug 7, 2008 at 8:54 AM, Arkadiusz Miskiewicz <arekm@???> wrote:

> I'm fetching some data from mysql with national characters. mysql needs to be
> told which character encoding client wants. It's done by query "SET NAMES
> xyz" (like SET NAMES latin2).
>
> I wonder how to do that in exim so all connections to mysql will have "set
> names" as first command. Is there some smart way without patching exim?
>


Somewhat OT, but:

Try

init-connect='SET NAMES <charset>'

in the [mysqld] section of your my.cnf. This will set all connections
to use that charset.