Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 wampserver (windows) 上创建具有非 ASCII 名称的目录?
$str = 'سسسس'; if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $str = iconv( "UTF-8", "Windows-1256", $str ); } mkdir( $str );
如果您的iconv支持Windows-1256和包含字符串文字的 PHP 文件'سسسس'以 UTF-8 保存,这将起作用。
iconv
Windows-1256
'سسسس'