title: JSON format error even though echo matches with DataTables
body: <p>I run a lengthy PHP script I was modifying to PDO formatting as opposed to crappy mysql Db calls. At the end of the script, the $output is json encoded with:</p>
  
  <pre><code>echo json_encode( $output );
  </code></pre>
  
  <p>When I run the two scripts, the output to screen is IDENTICAL but my jquery DataTables program returns an error on the PDO encoded results and not the mysql return.</p>
  
  <p>I have run regex's on the two results and they are IDENTICAL so why this is happening is beyond me. </p>
  
  <p>Anybody ever had the same issue?</p>
  
  <h1>EDIT</h1>
  
  <p>DataTables error states:</p>
  
  <blockquote>
    <p>DataTables warning: JSON data from
    server could not be parsed. This is
    caused by a JSON formatting error.</p>
  </blockquote>