when my file is chinese, it can't get filename
YouPHPTube-Encoder\view\listFiles.json.php
$video_array = glob($path . $filesStr, GLOB_BRACE);
var_dump($video_array);
$path_parts = pathinfo($value);
var_dump($path_parts);
dump info is:
array(2) {
[0]=>
string(60) "/var/www/YouPHPTubeEncoder/uploads/Fun鐖辩瑧鐨勪紛鍢変汉.mp4"
[1]=>
string(63) "/var/www/YouPHPTubeEncoder/uploads/濂旇窇鐨勫鍏佸効鍞辨瓕.mp4"
}
array(4) {
["dirname"]=>
string(34) "/var/www/YouPHPTubeEncoder/uploads"
["basename"]=>
string(25) "Fun鐖辩瑧鐨勪紛鍢変汉.mp4"
["extension"]=>
string(3) "mp4"
["filename"]=>
string(21) "Fun鐖辩瑧鐨勪紛鍢変汉"
}
array(4) {
["dirname"]=>
string(34) "/var/www/YouPHPTubeEncoder/uploads"
["basename"]=>
string(4) ".mp4"
["extension"]=>
string(3) "mp4"
["filename"]=>
string(0) ""
}
pathinfo function can't support chinese encoder

filename is empty

titile is Automatic Title
i fix it. setlocale(LC_ALL, 'zh_CN.UTF-8'); then pathinfo function is OK.
Most helpful comment
i fix it. setlocale(LC_ALL, 'zh_CN.UTF-8'); then pathinfo function is OK.