使用带有重音 URL 的 cURL,如果 CURLOPT_RETURNTRANSFER = true,我无法获取内容。
例子:
$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "http://fr.wikipedia.org/wiki/Été");
curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true);
$html = curl_exec ($curl);
echo $html;
$html 是空的,有人有解决方案吗?