將UTF8編碼轉換爲GB2312編碼php
<?php $file="/attachment/21/0/材料.rar"; $newfile = dirname(__FILE__).$file;編碼
$file=iconv('UTF-8','GB2312',$file);file
echo file_exists($newfile); ?>di