header( 'Content-Type: text/csv' );
header('Content-Type: text/csv; charset=utf-8');
fputcsv($fp, "\xEF\xBB\xBF");