But is it solved now after setting locale? We use PHP basename()
to get the name of the directory. As stated in their docs:
PHP basename() wrote:
basename() is locale aware, so for it to see the correct basename with multibyte character paths, the matching locale must be set using the setlocale()
So if you are using folder names with multi-byte characters, and your server default locale is not set to UTF-8, you would have to setlocale() in PHP. I may have to see if there are any workarounds to make it future-proof for all character sets.