This is my code for uploading text to PHP file and then to MySQL server:
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new BasicNameValuePair("title", title));
params.add(new BasicNameValuePair("text", text));
params.add(new BasicNameValuePair("date", currentDate()));
params.add(new BasicNameValuePair("photoid", photoId()));
params.add(new BasicNameValuePair("latitude", latit));
params.add(new BasicNameValuePair("longitude", longi));
JSONObject json = jsonParser.makeHttpRequest(URL_UPLOAD,
"POST", params);
The code from the EditText is in Arabic language so it works and in MySQL. I can add Arabic language, it works. I tried to add from PHP to MySQL manually and it worked.
So, it seems the problem is that the text is not received well in the PHP file from the Android application.
In MySQL it is stored like ?????.
Just Add (N) Character before the string You send to query As
and everything will be ok
Good Luck