New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with UTF-8 file/directory names #235
Comments
Gah, it was server |
Anyone who encountered similar issue - make sure you set locale in your code with setlocale(LC_ALL, "en_US.utf8"); |
@zaak did you had this issue under windows or unix? |
@ThaDafinser Linux. On Windows it fails completely if it's about UTF-8 names, but it's PHP itself at fault, not the Flysystem. |
@zaak thank you. Just tried on PHP7 and still not solved. I found this for windows (in case someone comes around here): Alternative with <?php
$path = '..YOUR_PATH...';
/*
* COM
*/
$fso = new \COM('Scripting.FileSystemObject', null, CP_UTF8);
$folder = $fso->GetFolder($path);
foreach ($folder->Files as $obj) {
var_dump($obj->Name);
} |
I also found this problem...
|
Most or all of the issues here should be resolved with php 7.1 |
I have following directory structure:
When I call
$filesystem->listContents('files')
I'm getting following output:As you can see
filename
andbasename
are invalid. This is caused by lack of multibyte support inpathinfo
used in Util::pathinfo(). Expected output is:The text was updated successfully, but these errors were encountered: