views:

17

answers:

1

I have this file upload and it works in Firefox fine, but when I upload file n IE and filename has umlauts, then filename is corrupted. After file is uploaded I echo filename and filename is corrupted like in my example.

Example:

ä.png is converted to ä.png

+2  A: 

It's just the encoding which don't match, try

echo utf8_decode($filename);
MatTheCat
Thanx it worked, but only in cases when browser cannot handle it on it own. So i had to add ie version check to my script too.
newbie
Or you can change your pages encoding for UTF8 ^^
MatTheCat