title: Json encode returns ? marks for Chinese characters
body: <p>I have Names which are stored using <code>utf8_unicode_ci</code> in database.</p>
  
  <p>Ajax dataType property is <code>dataType:"json"</code></p>
  
  <p>And this is the php code:</p>
  
  <pre><code>$names = mysql_query($query);
  
  $name_arr = array();
  while($name = mysql_fetch_assoc($names)) {
      $name_arr[] = $name;
  }
  
  echo json_encode($name_arr);
  </code></pre>
  
  <p>It returns <code>???</code> replacing Chinese characters. I think I didn't do double encode. Can someone help me? Thanks.</p>