我愿意
http://localhost/api/test2.php?id=jr-東北本線-荒川橋梁__35.79_139.72
然后我做
$data=$_GET['id']; // Zend says that $data is jr-????-????__35.79_139.72
$encoding = mb_detect_encoding ($data); // $encoding is ASCII
$data= mb_convert_encoding($data,'utf-8'); //$data is still jr-????-????__35.79_139.72
$encoding2 = mb_detect_encoding ($data); // $encoding is still ASCII
问题是我要$data是jr-东北本线-荒川桥梁__35.79_139.72
所以我该怎么做?