title: UTF 8 support in Android as well as PHP
body: <p>I am using UTF8 support to display Hindi characters in my application. But when I am doing so, I am getting this result in PHP</p>
  
  <pre><code>\u0939\u094d\u0926\u094b\u0926\
  </code></pre>
  
  <p>while I am getting the correct Hindi letters in Android. My issue is that I want to show hindi characters in both Android app as well as PHP web page.</p>
  
  <p>I have used this line in PHP file which is giving Hindi character in Android</p>
  
  <pre><code>$row = mysql_query("SET NAMES utf8");
  </code></pre>
  
  <p>Please suggest some changes in the below given PHP code</p>
  
  <pre><code>&lt;?php
  header('Content-type: text/php; charset=utf-8');
  mysql_connect("host","root","pwd");
  mysql_select_db("db_name");
  
  $row = mysql_query("SET NAMES utf8");
  
  $sql=mysql_query("select * from t1 ORDER BY timestamp DESC Limit 50");
  while($row=mysql_fetch_assoc($sql)) {
  $output[]=$row;
  }
  
  $countries = array('countries' =&gt; $output);
  
  echo json_encode($countries);
    mysql_close();
  ?&gt;
  </code></pre>