-
Notifications
You must be signed in to change notification settings - Fork 24
Unicode filenames breaks MM #462
Comments
This is because json_encode($array) throws an error when strings in the array is non UTF-8 as with Windows. |
#463 should fix this issue. |
Issue can be closed as the pr got merged. Thanks for reporting. |
@laoneo |
Well, I remembered, I still have an older XAMPP instance with PHP 7.0.4. After downloading the code from here I made a quick test. As I presumed - the problem remains. You have my two alternative solutions above. Image 1: fresh installation, Image 2: Übergrößen-länge.jpg added. = broken view. You can reopen the issue. |
It works on Linux, hope somebody else can help here out. |
That's a correct behavior as it strips out illegal characters when editing in MM. @schnuti do you use the latest code from the dev branch? |
If we want to keep the file name with UTF http://blog.garr.co.uk/php/2015/09/22/php-windows-and-utf-8-filenames.html |
The UTF issue is handled in core joomla/joomla-cms#16878. Here we need to care only about when somebody uploaded a file with UTF characters trough FTP. |
Again -> from my post above
To test you need a Windows system with PHP 7.0x i.e. < 7.1 If the PHP version requirement for Joomla 4 is raised to >= 7.1 this issue can be closed! Clear enough? @laoneo My new test yesterday (Jan 11) was made with a download the same day. |
@schnuti I will discuss that issue in the PLT about a possible version increase to 7.1 for J4 as 7.0 will be EOL by December 2018 anyway. |
@laoneo For PHP
|
@laoneo |
At the moment we stick with PHP 7.0 as min requirement. We can have a look on the issue again at a later point when we are in beta or rc phase when the PHP 7 version is fixed. |
OK! We just keep this issue open then. |
Copy (FTP upload) a file with e.g. the name Übergrößen länge.jpg to the image folder.
Expected result
The file should appear in MM with "funny" characters as in J3.x
alt. skip files with unicoded names.
Actual result
No files or folders at all are displayed after a short "progress".
System information (as much as possible)
XAMPP local test, Win10
The text was updated successfully, but these errors were encountered: