android error font UTF8 get data from webservice?
<p><strong>webservice.php</strong></p>

<pre><code>&lt;?php 
/* require the user as the parameter */
//http://localhost:80/sample1/webservice1.php?user=1

//if(isset($_GET['user']) &amp;&amp; intval($_GET['user'])) {


  /* soak in the passed variable or set our own */
  //$number_of_posts = isset($_GET['num']) ? intval($_GET['num']) : 10; //10 is the default
  $format ="json";// strtolower($_GET['format']) == 'json' ? 'json' : 'xml'; //xml is the default
 // $user_id = intval($_GET['user']); //no default

  /* connect to the db */
  $link = mysql_connect('localhost','root','123456') or die('Cannot connect to the DB');
  mysql_select_db('TEST',$link) or die('Cannot select the DB');

  /* grab the posts from the db */
  //$query = "SELECT post_title, guid FROM wp_posts WHERE post_author = $user_id AND post_status = 'publish' ORDER BY ID DESC LIMIT $number_of_posts";
  $query = "SELECT * FROM `test`.`daitran`;";
  $result = mysql_query($query,$link) or die('Errant query:  '.$query);

  /* create one master array of the records */
  $posts = array();
  if(mysql_num_rows($result)) {
    while($post = mysql_fetch_assoc($result)) {
      $posts[] = array('Item'=&gt;$post);
    }
  }

  /* output in necessary format */
  if($format == 'json') {
    header('Content-type: application/json');
    echo json_encode(array('DaiTran'=&gt;$posts));
  }
  else {
    header('Content-type: text/xml');
    echo '&lt;posts&gt;';
    foreach($posts as $index =&gt; $post) {
      if(is_array($post)) {
        foreach($post as $key =&gt; $value) {
          echo '&lt;',$key,'&gt;';
          if(is_array($value)) {
            foreach($value as $tag =&gt; $val) {
              echo '&lt;',$tag,'&gt;',htmlentities($val),'&lt;/',$tag,'&gt;';
            }
          }
          echo '&lt;/',$key,'&gt;';
        }
      }
    }
    echo '&lt;/posts&gt;';
  }

  /* disconnect from the db */
  @mysql_close($link);
//}
 ?&gt; 
</code></pre>

<p><strong>android file</strong></p>

<pre><code>HttpParams httpParams = new BasicHttpParams();
            HttpConnectionParams.setConnectionTimeout(httpParams,
                    TIMEOUT_MILLISEC);
            HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);
            //
            HttpParams p = new BasicHttpParams();
            // p.setParameter("name", pvo.getName());
            p.setParameter("user", "10");

            // Instantiate an HttpClient
            HttpClient httpclient = new DefaultHttpClient(p);
            String url = "http://10.0.2.2:81/phpWebservice/webservice1.php?user=1&amp;format=json";
            HttpPost httppost = new HttpPost(url);

            // Instantiate a GET HTTP method

                Log.i(getClass().getSimpleName(), "send  task - start");
                //
                List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(
                        2);
                nameValuePairs.add(new BasicNameValuePair("user", "1"));
                httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
                ResponseHandler&lt;String&gt; responseHandler = new BasicResponseHandler();
                String responseBody = httpclient.execute(httppost,
                        responseHandler);
</code></pre>

<p>database has table daitran : column Name save info by Japanese (UTF8)</p>

<pre><code>    result : responseBody  error font Japanese.
    {"DaiTran":[{"Item":{"Id":"1","Name":null,"NgaySinh":"2012-05-19"}},{"Item":

{"Id":"2","Name":"\u6309\u7167\u89c4\u5b9a","NgaySinh":"2012-05-19"}}
</code></pre>

<p>How does this problem resolve?
Can you help me?
Thanks</p>
