it's a problem with whatever you're using to view the results.
for example, if you're using a web browser to view the results, then the problem is that you're not telling the web browser to interpret it as unicode, and your browser try to interpret it as ASCII or something, in which case the fix is to add
header("Content-Type: text/plain;charset=utf-8"); at the top of your script.
if you're using a terminal.. idk, maybe try using a better terminal? bash maybe?
PS, you're vulnerable to variable injection and variable corruption on line 6 (for example the number
+47123123 would be converted to
47123123, the + would be lost!) the code should be
curl_setopt($curl, CURLOPT_URL, 'https://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel=' . urlencode($tel));