2009年5月13日星期三

Re: [fw-db] Use SET NAMES UTF8 on adapter config for mysql

In 1.8 you can also simply use:

resources.db.params.charset = utf8

1.8 has "charset" option support.

-ralph

Cristian Bichis wrote:
> Hi,
>
> If i am connecting to MySQL through PDO_MYSQL i have an easy way to set
> SET NAMES UTF8;... Directly on db configuration:
>
> resources.db.adapter = PDO_MYSQL
> ................
> *resources.db.params.driver_options.1002 = "SET NAMES UTF8;"*
>
> How should i set this for a MYSQLI driver on configs ?
>
> --
> Best regards,
> Cristian Bichis
> www.zftutorials.com | www.zfforums.com | www.zftalk.com | www.zflinks.com
>

没有评论: