I have a code that will grab my mysql data and write it to a file. Everything is working fine except diacritics. I have set it to UTF-8, if I save the result as a text it is working OK, when I open with excel diacritics are messed. Is there any header I have to add that will help excel read the diacritics? Here is my actual header: header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Type: application/download");; header("Content-Disposition: attachment;filename=s.xls "); header("Content-Transfer-Encoding: binary "); Code (markup):
Ok A few changes. {php} header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=s.xls "); header("Content-Transfer-Encoding: binary"); {/php} You had a bunch of headers that we not valid...The content-type can only be one thing. Anyway, if you need more help, I'm available through PM.
Oh, I know, I have tested a lot of versions but it is the same. The headers you gave me are doing the same, save the file but with the diacritics messed.