guo664
金牌会员
 
UID 74604
精华
0
积分 2376
帖子 289
金钱 2376 喜悦币
威望 0
人脉 0
阅读权限 70
注册 2006-6-7
状态 离线
|
curl_init乱码
$url= "http://www.baidu.com";
$header=array("Content-Type: text/xml;charset=utf-8");
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
echo curl_exec($ch);
curl_close($ch);
为什么这样输出是乱码 呢该怎么改呀
|
|