PHP file_exists with accent returns false

后端 未结 1 1764
醉酒成梦
醉酒成梦 2021-01-17 20:45

I have two folders, Folder and Folderé. The second one could not be catch by PHP.

Here is my test:



        
相关标签:
1条回答
  • 2021-01-17 21:30

    This works like charm

    <?php
    $dir = 'D:\wamp\www\test\data\Folderé';
    var_dump(file_exists((utf8_decode($dir))));
    
    0 讨论(0)
提交回复
热议问题