Although php supports Chinese directories, it is best not to use it. Each system supports different encoding formats, such as: Linux series, generally UTF-8 encoding. If it's Windows, it should be ANSI.
If your PHP code is UTF-8 encoded, under Windows, you need to convert the encoding of files and directory strings containing Chinese.
For example:
$dir = 'D:/My Documents'; This directory exists, but you get a false value when you use is_dir() to judge. $dir = iconv( 'UTF-8', 'GB18030', $dir );
Although php supports Chinese directories, it is best not to use it. Each system supports different encoding formats, such as: Linux series, generally UTF-8 encoding. If it's Windows, it should be ANSI.
If your PHP code is UTF-8 encoded, under Windows, you need to convert the encoding of files and directory strings containing Chinese.
For example:
$dir = 'D:/My Documents'; This directory exists, but you get a false value when you use is_dir() to judge.
$dir = iconv( 'UTF-8', 'GB18030', $dir );
Just convert the encoding.