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

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Arkadiusz Miskiewicz
Fecha:  
A: exim-users
Asunto: Re: [exim] exim, mysql >= 4.1 and characters encoding
On Thursday 07 August 2008, Darton Williams wrote:
> 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.


That's worse possible solution because it applies to everything, not only to
exim connection.

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/