I\'m generating the csv file with the following header commands:
header(\"Content-type: text/csv; charset=utf-8; encoding=utf-8\");
header(\'Content-Disposit
Output 0xEF 0xBB 0xBF
before emitting the CSV data. Don't forget to increase the content length header by 3 if you handle it.
header('Content-type: text/csv;');
header('Content-Length: ' + strlen($content) + 3);
header('Content-disposition: attachment;filename=UK_order_' . date('Ymdhis') . '.csv');
echo "\xef\xbb\xbf";
echo $content;
exit;