CI-Excel-Generation-Library php導出excel亂碼。

修改this

    private function generate($headers, $data) {
        $this->set_headers();
        $data = "\xFF\xFE" .mb_convert_encoding($data,"GBK");//轉換爲GBK。解決亂碼問題。
        echo "$headers\n$data";  
    }io

相關文章
相關標籤/搜索