When I use urlencode() on the same string containing special characters in PHP7 and PHP 5.3.10, the results are different.
What I tried:
urlencode('Testör')
Output in PHP7: Test%C3%B6r
Output in PHP 5.3: Test%25C3%25B6r
Could someone explain what the %25 leading in the older PHP version is?
curl_setopt($ch, CURLOPT_URL, $url).