title: How to store Hindi text in MySQL from Android?
body: <p>I'm getting ?????? in MySQL instead of Hindi text. I have following code to get Hindi text from edittext and send to PHP page which is to store the my text.</p>
  
  <p><strong><em>My Activity</em></strong></p>
  
  <pre><code>public class MainActivity extends Activity {
       EditText s;
       Button b1;
        private JSONObject jsonObject=null;
        List&lt;NameValuePair&gt; nameValuePairs;
             ProgressDialog dialog = null;
  
  
           @Override
          protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          s=(EditText)findViewById(R.id.editText1);
         b1=(Button)findViewById(R.id.btn);
         Typeface tf = Typeface.createFromAsset(getAssets(), "akshar.ttf");               
  
       s.setTypeface(tf);
  
  
       b1.setOnClickListener(new OnClickListener() {
  
          @Override
          public void onClick(View arg0) {
  
          Toast.makeText(getApplicationContext(), ""+s.getText(), Toast.LENGTH_SHORT).show();
              new GetAllPosts().execute();
          }
      });
  }
  
  
  private class GetAllPosts extends AsyncTask&lt;Void, Void, Void&gt; {
  
      @Override
      protected void onPreExecute() {
          super.onPreExecute();
      }
  
      @Override
      protected Void doInBackground(Void... arg0) {
          ServiceHandler sh = new ServiceHandler();
              List&lt;NameValuePair&gt; params   = new ArrayList&lt;NameValuePair&gt;(2);
              params.add(new BasicNameValuePair("text",""+s.getText()));
  
              jsonObject = sh.makeServiceCall("http://192.168.24.12/temp/v1/temp.php", ServiceHandler.POST, params);
          return null;
      }
  
      @Override
      protected void onPostExecute(Void result) {
          super.onPostExecute(result);
      }
  }
  
  }     
  </code></pre>