title: datatables returns Invalid json response when i am loading french text FROM database
body: <p>I am getting this error only when I select a column which has French content in it. It may be a language issue. What can I do to avoid this error?    </p>
  
  <blockquote>
    <p>DataTables warning: table id=example - Invalid JSON response. For more information about this error, please see <a href="http://datatables.net/tn/1" rel="nofollow noreferrer">http://datatables.net/tn/1</a></p>
  </blockquote>
  
  <pre><code>$(document).ready(function() {
      $('#example').DataTable({
          "processing": true,
          "serverSide": true,
          /*"contentType": false,*/
          "ajax": '&lt;?=base_url()?&gt;'+"posts/get_html_posts"
      });
  });
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>&lt;table id="example" class=" ui table" cellspacing="0" width="100%"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;No&lt;/th&gt;
              &lt;th&gt;Category Name&lt;/th&gt;
              &lt;th&gt;Subcategoty Name&lt;/th&gt;
              &lt;th&gt;Title En&lt;/th&gt;
              &lt;th&gt;Title Fr&lt;/th&gt;
              &lt;th&gt;Is Draft&lt;/th&gt;
              &lt;th&gt;Edit&lt;/th&gt;
              &lt;th&gt;Delete&lt;/th&gt;
              &lt;th&gt;Website url&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>public function get_html_posts()
      {
          require(APPPATH .'third_party/ssp.class.php' );
          $table = 'posts';
          $primaryKey = 'post_id';
          $columns = array(
              array('db' =&gt; 'post_id','dt' =&gt; 0),
              array( 'db' =&gt; 'category_id', 'dt' =&gt; 1 ),
              array( 'db' =&gt; 'subcategory_id',  'dt' =&gt; 2 ),
              array('db'=&gt;'title_en','dt'=&gt;3),
              array('db'=&gt;'title_fr','dt'=&gt;4),
              array('db' =&gt; 'is_draft','dt' =&gt; 5,"formatter"=&gt;function($d,$row) {
                  if($row['is_draft']==1)
                  return "&lt;spna class='ui orange label'&gt;Draft&lt;/span&gt;";
                  else
                  return "&lt;spna class='ui green label'&gt;Published&lt;/span&gt;";
              }),
              array('db' =&gt; 'post_id','dt'=&gt;6,"formatter"=&gt;function($d,$row) {
                  return "&lt;a href='".base_url()."posts/edit/".$row['post_id']."' class='ui orange button padding-10'&gt;&lt;i class='write icon margin-0'&gt;&lt;/i&gt;&lt;/a&gt;";
              }),
  
              array('db'=&gt;'post_id','dt'=&gt;7,"formatter"=&gt;function($d,$row) {
                  return "&lt;a href='#' class='ui red button padding-10' onclick='return delete_record(this.id)' id='".$row['post_id']."'&gt;&lt;i class='remove icon margin-0'&gt;&lt;/i&gt;&lt;/a&gt;";
              }),
              array('db'=&gt;'post_slug','dt'=&gt;8,"formatter"=&gt;function($d,$row)
              {
                  $web_url = "http://localhost";
                  return "&lt;a class='ui orange button padding-10' target='_blank' href=".$web_url.'category/'.str_replace('-','', $row['category_id']).'/'.$row['subcategory_id'].'/'.$row['post_id'].'/'.$row['post_slug']."&gt;&lt;i class='expand icon margin-0'&gt;&lt;/i&gt;&lt;/a&gt;";
              })
  
          );
  
          $sql_details = array(
              'user' =&gt; 'root',
              'pass' =&gt; '',
              'db'   =&gt; 'my_demo',
              'host' =&gt; 'localhost'
          );
          //header('Content-Type: application/json');
          echo json_encode(
              SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns )
          );
      }
  </code></pre>