我在index.php裡有一個二維數組
$this->fieldsDisplayAddresses = array(
'id_address' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
                 'm!manufacturer_name' => array('title' => $this->l('中國'), 'width' => 100),
'firstname' => array('title' => $this->l('First name'), 'width' => 80),
'lastname' => array('title' => $this->l('Last name'), 'width' => 100, 'filter_key' => 'a!name'),
'postcode' => array('title' => $this->l('Post/Zip code'), 'align' => 'right', 'width' => 50),
'city' => array('title' => $this->l('City'), 'width' => 150),
'country' => array('title' => $this->l('Country'), 'width' => 100, 'type' => 'select', 'select' => $this->countriesArray, 'filter_key' => 'cl!id_country'));$this->l()這是它父類的一個方法,可以不用管
  但在本類調用的時候echo出來的都正常
  我在它子類裡面調用這個數組的時候發現裡面的中文件顯示為亂碼,不知道是為什麼,哪個高人幫幫我,在線等待!!!!!!!

解决方案 »

  1.   

    編碼是big5,兩個php文件編碼是相同的,為什麼在其他的php裡面調用這個數組時出現亂碼?在本身的php中調用就完全正常?
      

  2.   

    big5?你尝试下用 utf
    没用过 big5.
      

  3.   

    謝謝各們大俠,問題解決,我是用dreamweaver來編輯,但它不會固定編碼方式
      

  4.   

    NetBeans是个很好的编译器,建议你用这个东西