title: php-curl dosen't support utf-8 in url
body: <p>I am trying to send an http request from my server to another server in php.
  The url that I send the request to contains some utf8 characters for example <a href="http://www.aparat.com/etc/api/videoBySearch/text/%D9%86%D9%88%D8%B1%D9%88%D8%B2" rel="nofollow">http://www.aparat.com/etc/api/videoBySearch/text/نوروز</a> .</p>
  
  <p>Here is my code:</p>
  
  <pre><code> const api_adress = 'http://www.aparat.com/etc/api/';
   const xml_config = 'http://www.aparat.com/video/video/config/videohash/[ID]/watchtype/site';
  
   public function getDataInArray($JSON_ADRESS)
   {
       $json = json_decode(file_get_contents(self::api_adress . utf8_encode($JSON_ADRESS)), true);
       return ($json != NULL) ? $json : die(NULL);
  }
  </code></pre>
  
  <p>I have also tried php-curl insted of file-get-contents but I got no answer.</p>