ZendFramework cuts strings from first non a-z char when inserting to mysql

jeramie78

New Member
When I insert some data with \[code\]Zend_Form\[/code\] to database with non \[code\]a-z\[/code\] characters like \[code\]chrz?szcz\[/code\] it cuts me this string and in database I have saved only \[code\]chrz\[/code\].Everyting in \[code\]MySql\[/code\] is set as \[code\]utf8_general_ci\[/code\], when connecting with \[code\]MySql\[/code\] I call \[code\]SET CHARACTER SET 'utf8'\[/code\], files are also \[code\]UTF-8\[/code\].I have no idea what to do with that.I wrote also standalone script and it inserts and reads me that string correct. \[code\]ZendFramework\[/code\] reads it also correct. The problem is only with inserting.Do anyone know how to fix it ?UPDATE:If I insert data with:\[code\]$db->query("INSERT INTO unit SET name = 'chrz?szcz'");\[/code\]in \[code\]ZendFramework\[/code\] it works. Problem is with inserting that way:\[code\]$unitTable = new Model_Unit_Table();$unit = $unitTable->createRow();$unit->setFromArray($form->getValues());$unit->save();\[/code\]UPDATE 2:Problem is with using \[code\]Zend_Filter_StringToLower\[/code\] - it modifies string \[code\]chrz?szcz\[/code\] into \[code\]chrz?szcz\[/code\].
How to get this filterto work correct ?
 
Back
Top