http://fr.php.net/manual/fr/book.mbstring.php
http://fr.php.net/manual/fr/book.mbstring.php
Maxime P wrote:
>
> Hi everybody!
>
> I've got the same problem than Jack. I tried
> -----
> try {
> $db = Zend_Db::factory($config->db);
> $db->query("SET NAMES 'utf8'");
> Zend_Db_Table::setDefaultAdapter($db);
> Zend_Registry::set('db', $db);
> } catch (Exception $e) {
> exit($e->getMessage());
> }
> ---
>
> And i check the database, the header, the view, all are in utf-8. And
> squares with question mark appear.
>
> In my database, data appear like this "société", is-it normal? It should
> be not like this "sociã©tã©"
>
> Can you help me? I become crazy! Thank you!
>
>
>
>
> Jack Sleight wrote:
>>
>> Dimitri van Hees wrote:
>>> try executing the query "SET names 'utf8'" before you execute another
>>> query. works fine for me...
>> James Dempster wrote:
>>> If your using MySQL make sure that you set the correct encoding type
>>> by doing somthing like...
>>> $db->query('SET NAMES UTF8');
>>>
>>> If your using somthing other than MySQL then look into what is
>>> required for your DB
>> Thanks guys, I must have found that on the web at exactly the same time
>> you posted it :) .
>> Cheers again,
>> --
>> Jack
>>
>>
>
>
--
View this message in context: http://www.nabble.com/UTF-8-problem-tp18088667p19145213.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论