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
'سسسس'