Where is the filename coming from? Is it hard-coded in the script or is your script reading it from a directory listing?
Have you checked to see if that filename is what you think it is on the Linux server? Was Apache the web server both times, or was iis used on windows? If it was, look for any errant .htaccess files causing problems. Lastly, what happens if you directly request that file from with the browser itself, without php scripts in the equation. Thanks, Ash http://www.ashleysheridan.co.uk ----- Reply message ----- From: "Marc Guay" <marc.g...@gmail.com> Date: Tue, Oct 26, 2010 18:22 Subject: [PHP] Character encoding hell To: "a...@ashleysheridan.co.uk" <a...@ashleysheridan.co.uk> Cc: "php-general" <php-general@lists.php.net> > Have you tried using the utf8 meta tag rather than using the htmlentities() > function? That should solve the first issue, as I reckon the problem lies > with the way your encoding the filename. The page is being encoded in UTF-8. Without htmlentities() the special character is displayed as a black triangle with a question mark in it. Does that indicate that the filename isn't being stored as UTF-8? > Lastly, have you made sure your php scripts are saved as utf8, as that can > sometimes solve some odd problems with character encoding. This didn't seem to change anything. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php