We have a PHP/MYSQL application that collects user input, including special characters like ø,ü,ñ, etc Database is capturing them, and they can be seen via PHPmyAdmin. Download on windows is fine. Display on a mac browser is fine.
When users download the text file on a Mac OSX, the unicode characters come out as other characters. If I save the PHP file as with UTF-8 with BOM, (which apparently affects PHP output) they come out as little black diamonds.
Here is the output header I am using
mb_http_output("UTF-8"); header('Content-type: application/xml; charset="utf-8"'); header("Content-Disposition: attachment; filename=file.xml"); die($text);
Any tips greatly appreciated!