2010-11-08 78 views
0

在我的Zend Framework應用程序中,我想使用Dojo表單。 我有編碼問題,我猜。Zend Framework - Dojo表單編碼問題

當我添加元素到標籤包含一些specila字符如éí它的作品,但它可以顯示任何標籤的形式!

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

任何人都可以幫助我嗎?

+0

請告訴我的錯誤?我認爲你也可以使用$ this-> addElement('TextBox',array(... – Ashley 2010-11-08 22:50:15

+0

它不顯示標籤 – Tom 2010-11-09 11:34:27

回答

0

問題解決了相同的編碼(UTF8), 從來就保存文件(以前是WIN1250)

0

我沒有測試它,但你試過在表格上設置UTF-8:

->setAttrib('accept-charset', 'utf-8'); or 'accept-charset' => 'utf-8' 

這或許也值得檢查你視圖設置爲UTF-8。

$view->setEncoding('UTF-8'); 
+0

不,它不工作,我試過設置accept-charset。 view - Tom 2010-11-09 11:50:44