Jump to content

Php send junk


nc3b

Recommended Posts

I try to send a file from the server to the client, using
[code]header("Content-type: text/x-csv");
header("Content-Disposition: attachment; filename=blabla);
header("Pragma: no-cache");
header("Expires: 0");[/code]
It is a csv file. The problem is, it inserts three "junk" :-[ characters, EE EF BF as the first characters, which look like   :(. I understand this is "Byte ordering mark". Very well. How do I get it to vanish? ??? Please help
Link to comment
https://forums.phpfreaks.com/topic/35698-php-send-junk/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.