2009年3月24日星期二

[fw-mvc] problem autoCompleteDojo with french characters

Hi,

 

I’m using autoCompleteDojo helper with db_table without problem except when I have French characters (é è ç à).

 

This code :

            $themesEL = new Db_ThemesEL();

            $select = $themesEL->select();

            $data = new Zend_Dojo_Data('CODTHEM',$themesEL->fetchAll($select));

            $this->_helper->autoCompleteDojo($data);

 

Produce this :

 

{"identifier":"CODTHEM","items":[{"TYPTHEM":"EL","CODTHEM":"359","LBLTHEM":"Marine militaire"},{"TYPTHEM":"EL","CODTHEM":"351","LBLTHEM":"Administration centrale"},{"TYPTHEM":"EL","CODTHEM":"352","LBLTHEM":null},{"TYPTHEM":"EL","CODTHEM":"355","LBLTHEM":"Art et science militaires"},{"TYPTHEM":"EL","CODTHEM":"356","LBLTHEM":"Infanterie"},{"TYPTHEM":"EL","CODTHEM":"357","LBLTHEM":null},{"TYPTHEM":"EL","CODTHEM":"358","LBLTHEM":null},{"TYPTHEM":"EL","CODTHEM":"710","LBLTHEM":null},{"TYPTHEM":"EL","CODTHEM":"712","LBLTHEM":"Art du Paysage. Parcs et jardins"},{"TYPTHEM":"EL","CODTHEM":"719","LBLTHEM":"Sites naturels. Parcs nationaux"},{"TYPTHEM":"EL","CODTHEM":"720","LBLTHEM":null}…

 

Every time I have a special characters, it put null instead.

I think it’s a bug but I’m not sure.

Did someone else have this problem ?  

 

Thanks,

David

没有评论: