以下是关于搜狐网页乱码解决问题
<?php header("Content-Type:text/html;charset=utf-8"); $url = "http://goabroad.sohu.com/20150327/n410515889.shtml"; $html = file_get_contents($url); $html = iconv("gb2312", "utf-8//IGNORE",$html); echo $html; ?>file_get_contents 输出乱码问题
最新推荐文章于 2022-03-10 10:15:54 发布