title: YQL and cURL - Quote characters are not returned properly
body: <p>I am using YQL for some screen scraping, and any quote-like characters are not being returned properly. </p>
  
  <p>For example, markup on the page being scraped is:</p>
  
  <pre><code>There should not be a “split between what we think and what we do,”  
  </code></pre>
  
  <p>This is returned by YQL as: </p>
  
  <pre><code>There should not be a �split between what we think and what we do,� 
  </code></pre>
  
  <p>This also happens with ticks and back-ticks.</p>
  
  <p>My JS is like:</p>
  
  <pre><code>var qurlString = '&amp;url=' + encodeURIComponent(url);
  $.ajax({
    type: "POST",
    url: "/k_sys/qurl.php",
    datatype: "xml",
    data: qurlString,
    success: function(data) {
      //do something
    }
  });
  </code></pre>
  
  <p>And my qurl.php is like:</p>
  
  <pre><code>  $BASE_URL = "http://query.yahooapis.com/v1/public/yql";
    $url = my scraped site url;
    $yql_query = "select * from html where url='$url'";
    $yql_query_url = $BASE_URL . "?q=" . urlencode($yql_query) . "&amp;format=xml";
    $session = curl_init($yql_query_url);
    curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
    $xml = curl_exec($session);
    echo $xml;
  </code></pre>
  
  <p>Is this a cURL issue or a YQL issue, and what to I need to do to fix it?</p>
  
  <p>Thanks!</p>