Hello. I need to send a file to a user, so I use
header("Content-type: text/x-csv");
header("Content-Disposition: attachment; filename=whatever");
header("Pragma: no-cache");
header("Expires: 0");
But as the three bytes it send EF BB BF which is Byte Ordering Mark, UTF-8. Or so I hear. These characters look like junk for a plain editor, not ready for UTF-8. It drives me nuts. Can you help? Thank you🙂