Showing unknown characters when excel forced to download in PhpExcel codeigniter
Try this
ob_clean();ob_start(); # added header('Content-type: application/vnd.ms-excel; charset=UTF-8" ); # Improved with UTF charsetheader('Content-Disposition: attachment;filename="' . $filename . '.xls"'); header('Cache-Control: max-age=0');ob_clean(); # remove this
if you want download this with 2003 and 2007 there are few changes to be done
2007 - file format xlsx2003 - file format xls