开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜