How could I echo the url that I use to curl data from along with the data showed?
My server does not display the Chinese characters properly from this curl, How can I fix it?
function mobile_number(){
$tel = isset($_GET['tel'])?$_GET['tel']:’';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=' . $tel);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$resp = curl_exec($curl);
print_r($resp);
}
This the result I get back:
__GetZoneResult_ = { mts:'1357465', province:'����', catName:'�й��ƶ�', telString:'13574652375', areaVid:'30514', ispVid:'3236139', carrier:'�����ƶ�’ }