Oct 15, 2009 at 2:36 PM
Edited Oct 15, 2009 at 2:38 PM
Thanks for your note, but do you mean there are problems with Excel files uploaded from Mac, or Excel files created in Mac and uploaded from any platform?
If you just need to read the Excel file, then can you not base your script on
If you are trying to obtain the original file name then you must ask what encoding is used for
$_FILES["uploaded"]["name"]. This entry is controlled by the browser from which the file was uploaded. As far as I remember from my tests, it will be encoded using the particular state of encoding
the page is viewed when the form is submitted. But this should be tested across various browser on various platforms.
This means that you will want to set the appropriate encoding for the HTML page holding the form with the file select field
header('Content-Type: text/html; charset=UTF-8')
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Did you do that? Otherwise it will not be UTF-8 encoded which is what you want.