2008年7月31日星期四

[fw-db] ZF 1.6RC1, DB adapters and Character Set

Hi

How to use it? Right now i'm using old code:


$db = Zend_Db::factory( $config->database );
$db->getProfiler()->setEnabled( $config->debug );

$db->getConnection();
try
{
$db->query( 'SET NAMES utf8' );
$db->query( 'SET CHARACTER SET utf8' );
} catch( Exception $e )
{

}

There is info about built in support for character sets in ZF 1.6RC1,
but can't find it, and any combinations with charset, characterset etc
doesnt work for me... How can i use this new (long awaited) feature from
ini files?

--
K.

没有评论: