的API響應顯示特殊字符,而不是實際的話(實際的話是從泰米爾語)PHP捲曲擊中特殊字符
我應該在這個加什麼頭?請舉一些例子。
獲得特別象下面這樣:
கிழமை
功能
function get_data($url) {
$ch = curl_init();
$timeout = 5;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
最後我固定低於螺紋 [http://stackoverflow.com/questions/1198701/storing -and-displays-unicode-string-using-php-and-mysql] [1] [1]:http://stackoverflow.com/ques tions/1198701/stored-and-displays-unicode-string-using-php-and-mysql – Bharanikumar 2013-04-08 05:27:12