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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Darton Williams
日付:  
To: exim-users
題目: 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.