Using basename breaks UTF-8 filenames
-
Hi,
Hope it’s the right place to open a bug report.
I tried to use the plugin to replace media with filename starting with Hebrew character (filename was in format “word1-word2.png” in Hebrew characters) and it didn’t succeed well (got 404). After a little digging I found out that the file is uploaded to the new name “-word2.png” (missing first chars with UTF-8 encoding). I found this post about basename and UTF-8. after adding setlocale(LC_ALL,’C.UTF-8′) to upload.php it worked OK.
I’m pretty new to WP and php and I’m not sure whether its good idea to push it everywhere but mb it’s better to at least check if the filename include UTF-8 chars and add warning so people won’t get 404.
Thanks!
- The topic ‘Using basename breaks UTF-8 filenames’ is closed to new replies.