Hi !
I got this csv file which need UTF8 encoding to look properly. I've done everything and it seems to be created and downloaded to the client properly however If you open it the characters would look kinda weird untill you open it on a text editor (where you can see the accents and everythign) such as notepad or textedit and then save the file, if you open it afterward everything would look great on excel.
Thus I think the content enconding is fine, however I don't know how to make the browser save the file with the correct enconding and not having my user to open it on notepad so notepad adds the correct headers to it :/
this is what I use to for the download, please assume the string is properly encoded
header("Content-disposition: attachment; filename=$filename");
header("Content-Type: application/force-download;charset=utf-8");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".strlen($temp_str));
header("Pragma: no-cache");
header("Expires: 0");
echo $string;
Any ideas on this ?
cheers