php readdir problem with japanese language file name

后端 未结 6 1627
野性不改
野性不改 2020-11-29 13:55

I have the following code



        
6条回答
  •  春和景丽
    2020-11-29 14:21

    Replace any instance of $file with mb_substr($file, mb_strrpos($file, '/') + 1) and you should be good to go. Huzzah for multi-byte encoding!

提交回复
热议问题