Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Zend framework Zend框架-Dojo表单编码问题_Zend Framework_Forms_Encoding_Dojo - Fatal编程技术网

Zend framework Zend框架-Dojo表单编码问题

Zend framework Zend框架-Dojo表单编码问题,zend-framework,forms,encoding,dojo,Zend Framework,Forms,Encoding,Dojo,在我的Zend Framework应用程序中,我想使用Dojo表单。 我想我在编码方面有问题 当我将元素添加到包含一些特殊字符的标签的表单中时,它可以工作,但不会显示任何标签 $this->addElement ( new Zend_Dojo_Form_Element_TextBox ( array ( 'name' => 'TextBox', 'label' => 'áíé', 'required' => true, 'Invalid

在我的Zend Framework应用程序中,我想使用Dojo表单。 我想我在编码方面有问题

当我将元素添加到包含一些特殊字符的标签的表单中时,它可以工作,但不会显示任何标签

$this->addElement ( new Zend_Dojo_Form_Element_TextBox ( array (
    'name' => 'TextBox',
    'label' => 'áíé', 
    'required' => true, 
    'InvalidMessage' => 'Invalid', 
    'trim' => true, 
    'propercase' => true ) ) );

有人能帮我吗?

我还没有测试过,但您是否尝试过在表单上设置utf-8:

->setAttrib('accept-charset', 'utf-8'); or 'accept-charset' => 'utf-8'
也许还值得检查一下您的视图是否也设置为utf-8

$view->setEncoding('UTF-8');
问题解决了,
我已经用相同的编码保存了文件。先前的F8是win1250

有什么错误?我想你也可以使用$this->addElement'TextBox',数组…不,它不起作用。我已经尝试过set接受charset。而且我已经考虑过编码-