title: JSON encode error for bengali fonts
body: <p>Everything is working fine. But when I try to encode some Bengali font from mysql database problem occurred that time. Bengali fonts are displayed as "?????????????". </p>
  
  <p>** Php file **</p>
  
  <pre><code>&lt;?php 
  define('HOST','localhost');
  define('USER','xxxxxxx');
  define('PASS','xxxxxxxx');
  define('DB','xxxxxxxxx');
  
  $con = mysqli_connect(HOST,USER,PASS,DB);
  
  $sql = "select * from bookinfo ORDER BY ID DESC";
  
  $res = mysqli_query($con,$sql);
  
  $result = array();
  
  while($row = mysqli_fetch_array($res)){
  array_push($result,
  array('id'=&gt;$row[0],
      'name'=&gt;$row[1],
      'writter'=&gt;$row[2],
      'url'=&gt;$row[3]
       ));
  }
  
  echo json_encode(array("result"=&gt;$result), JSON_UNESCAPED_UNICODE);
  
  mysqli_close($con);
  
  ?&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ujYXc.png" rel="nofollow noreferrer">click here to see output result </a></p>