title: json_encode() doesn't display arabic characters in good way
body: <p>i have problem with Arabic characters when i do json_encode() it always return ????, in the database all the fields and database is utf8</p>
  
  <p>my code:</p>
  
  <pre><code>$query   = mysql_query("SELECT * FROM `Names`");
  
  if (!$query) {
  $message  = 'Invalid query: ' . mysql_error() . "\n";
  die($message);
  }else
  {
      while ($row = mysql_fetch_assoc($query)) 
      {
       $result[] = array(
          'Mid' =&gt; $row['Mid'], 
          'Uid' =&gt; $row['Uid'], 
          'Cid' =&gt; $row['Cid'], 
          'Name' =&gt; $row['Name'],
          'city' =&gt; $row['city'],
          'status' =&gt; $row['status'],
          'Mobile' =&gt; $row['Mobile'],
          'Phone' =&gt; $row['Phone'],
          'Email' =&gt; $row['Email']);
      }
        header('Content-Type: application/json; charset=utf-8');
        echo json_encode($result);
  }
  </code></pre>
  
  <p>the result look like:</p>
  
  <pre><code>[{"Mid":"17","Uid":"1","Cid":"8","Name":"???? ?? ??????? ?? ???","city":"?????",
  </code></pre>
  
  <p>please help me </p>