title: I have to read and display gujarati font stored in database
body: <pre><code>&lt;?php
      //set charset:utf-8 //for json, is it right way to do it;
      header('Content-Type:application/json; charset:utf8'); 
  
      $mysqli = new mysqli('localhost','root','','hospital'); 
  
      $myArray = array();
      if ($result = $mysqli-&gt;query("SELECT * FROM tips")) {
  
          while($row = $result-&gt;fetch_array(MYSQL_ASSOC)) {
              $myArray[] = $row;
          }
          echo json_encode($myArray);
      }
  
      $result-&gt;close();
      $mysqli-&gt;close();
  
  ?&gt;
  </code></pre>