2009年5月13日星期三

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

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

没有评论: