日期:2014-05-16 浏览次数:20511 次
$url='test.txt'; $read = fopen($url,'r') or die('打开失败'); $text=fread($read,100); fclose($read); echo iconv('UTF-8','GBK','这是一个测试').'<br/>';#这句OK echo iconv('UTF-8','GBK',$text).'<br/>';#这句报错