Thursday, 15 March 2012

asp.net - Android JSON string server not show arabic character -


I write simple app in Android, but when I send the Arabic character to the asp.net server page, the server is known Does not contain Arabic characters and show me this:

  ["????"]  

Encrypt the Arabic string and then send that string,

  public status string getEncodedString (string str) {String ret = null; Try {ret = Base64.encode (str.getBytes ("UTF-8")); } Hold (exception e) {e.printStackTrace (); } Return return; }  

No comments:

Post a Comment