php代码如下:
<?php
header("Content-Type:text/html;charset=utf-8");
$html = file_get_contents("http://1212.ip138.com/ic.asp");
$utf8Html = mb_convert_encoding($html, 'utf-8', 'gb2312');
echo $utf8Html;
?>
读完这篇文章后,您心情如何?
php代码如下:
<?php
header("Content-Type:text/html;charset=utf-8");
$html = file_get_contents("http://1212.ip138.com/ic.asp");
$utf8Html = mb_convert_encoding($html, 'utf-8', 'gb2312');
echo $utf8Html;
?>