Zend Framework - Dojo form encoding problem
in my Zend Framework App i wanna use Dojo Form. I have problem with encoding i guess.
when i add element into form with label containing some specila char开发者_Go百科s like éíá it works but it doenst show any label!
$this->addElement ( new Zend_Dojo_Form_Element_TextBox ( array (
'name' => 'TextBox',
'label' => 'áíé',
'required' => true,
'InvalidMessage' => 'Invalid',
'trim' => true,
'propercase' => true ) ) );
Could anyone help me?
I've not tested it but have you tried setting utf-8 on the form:
->setAttrib('accept-charset', 'utf-8'); or 'accept-charset' => 'utf-8'
It maybe also worth checking you're view is set to utf-8 too.
$view->setEncoding('UTF-8');
Problem solved, i´ve saved file with same encoding(utf8) (previously was win1250)
精彩评论