Avideo: Bulk Encode Problem

Created on 12 Nov 2019  路  3Comments  路  Source: WWBN/AVideo

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

Most helpful comment

i fix it. setlocale(LC_ALL, 'zh_CN.UTF-8'); then pathinfo function is OK.

All 3 comments

QQ鎴浘20191112134108
filename is empty

QQ鎴浘20191112134651
titile is Automatic Title

i fix it. setlocale(LC_ALL, 'zh_CN.UTF-8'); then pathinfo function is OK.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alejandrolidon picture alejandrolidon  路  3Comments

gujarraju picture gujarraju  路  4Comments

akhilleusuggo picture akhilleusuggo  路  3Comments

moses268 picture moses268  路  3Comments

gamersalpha picture gamersalpha  路  3Comments