2009年4月26日星期日

Re: [fw-db] Zend_Db insert and update utf-8 chars

Maybe try to NOT use '$db->query("SET NAMES UTF8")'.

denadai2 schrieb:
> I've the same problem... Is there anyone that can help us?
>
>
>
> richardjansen wrote:
>
>> Hi there
>>
>> My database is MySQL, charset of the db is utf-8. I use PDO. I've done
>> $db->query("SET NAMES UTF8"). Now I can read correctly from de database.
>> The data in de db is how I want it (utf-8). The charset of de HTML is also
>> utf-8.
>>
>> The problem: I'm trying to insert and update special chars (like é) with
>> Zend_Db_Table_Abstract::insert (and update). The inserted data has stopted
>> just before the special char. Foo é Bar -> Foo.
>>
>> Thanks for your comments,
>> Richard Jansen
>>
>>
>>
>
>

没有评论: