title: Android get http response from PHP containing unicode character
body: <p>I am writing an app using android, it is suppose to retrieve some Chinese characters from server, the server using php scripts, like here </p>
  
  <pre><code> mysql_query("SET CHARACTER SET utf8", $link);
   $q= mysql_query("SELECT Name FROM ofPeers WHERE Address LIKE '$st' limit 0, 4");
   while($e = mysql_fetch_array($q))
      $output1=$output1.$e["Name"];
  
   print $output1;
  </code></pre>
  
  <p>the android using some code like</p>
  
  <pre><code>HttpClient client = getHttpClient();
  HttpPost request = new HttpPost(url);
  UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(postParameters,"UTF-8");        
  request.setEntity(formEntity);
  HttpResponse response = client.execute(request);
  </code></pre>
  
  <p>I found I caught an exception when I executed the execute statement, like this Error parsing data org.json.JSONException: End of input at character 0 of, Chinese Character. I think maybe it is caused by unicode, similar to this post
  <a href="https://stackoverflow.com/questions/8518019/how-to-convert-char-set-in-android">How to Convert Char set in android?</a></p>
  
  <p>but, I currently have no idea on how to get rid of the error! Any suggestions!</p>