Thank you, Bill.
I will try and answer if this construction useful.
----- Original Message -----From: Bill KarwinSent: Monday, October 20, 2008 5:08 PMSubject: Re: [fw-db] Zend_Db and mysql_set_charset();On Oct 19, 2008, at 10:56 PM, Alex Zinchenko wrote:
Zend_Db does not use the mysql PHP extension, so it does not use the mysql_set_charset() function.I have some troubles with my MySQL charset and i know that mysql_set_charset() function can help me.How to make it work with Zend_Db ?Currently you must run a query like the following to set a character set:$db->query("SET NAMES utf8");There have been suggestions to incorporate charset into the Db adapter constructor arguments, so it would take effect as the Db adapter makes its lazy connection to the database.But so far only a few patches have been written in issue ZF-1541 in the bug-tracker. No tests or documentation has been written, nor has any code been committed to the ZF product.Regards,Bill Karwin
http://www.esetnod32.ru
没有评论:
发表评论