How do I use filesystem functions in PHP, using UTF-8 strings?

后端 未结 9 2381
[愿得一人]
[愿得一人] 2020-11-22 13:26

I can\'t use mkdir to create folders with UTF-8 characters:


when I

9条回答
  •  不要未来只要你来
    2020-11-22 13:56

    You could use this extension to solve your issue: https://github.com/kenjiuno/php-wfio

    $file = fopen("wfio://多国語.txt", "rb"); // in UTF-8
    ....
    fclose($file);
    

提交回复
热议问题