开发者

File uploading in IE with umlauts in filename

开发者 https://www.devze.com 2023-01-21 15:49 出处:网络
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

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 exampl开发者_运维技巧e.

Example:

ä.png is converted to ä.png


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

echo utf8_decode($filename);
0

精彩评论

暂无评论...
验证码 换一张
取 消