I want to export a mysql database, which contains Chinese Characters, to a csv file. The original encoding of the mysql data is UTF-8, but when I export it to csv, the excel cannot display the chinese character. I know the problem is that I need to add BOM the encoding, I have follow the steps people taught but it doesn't work. May I ask anyone can help. please?? This the code I have:`
header("Content-type:text/csv; charset=utf-8-sig");
header("Content-Disposition:attachment;filename=".$v_scrn.".csv");
header('Cache-Control:must-revalidate,post-check=0,pre-check=0');
header('Expires:0');
header('Pragma:public');
echo "\xEF\xBB\xBF";
echo $data;