I am trying to export my post data into csv/xls but both return '???' instead of arabic string. I have set headers...
//output the headers for the XLS file
header('Content-Encoding: UTF-8');
header("Content-Type: Application/vnd.ms-excel; charset=utf-8");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Description: File Transfer');
header("Content-Disposition: Attachment; Filename=\"$filename\"");
header("Expires: 0");
header("Pragma: public");