I'm trying to access Google's geocode API using Android-Async-http library in my app. Here is my request and below is response:
���������������UMo�0��WX>Ӫ i{���UJ�$�J� mߔ%�===�������B��R��}���#�4�.�d�{��$�b��D��V<��<�����w*y�q���y5����o� �����
Here is success callback method of AsyncHttpResponseHandler.
@Override
public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {
if (statusCode == HttpStatus.SC_OK) {
try {
String response = new String(responseBody);
//String response = new String(responseBody, "UTF-8"); //this is also giving junk reponse
Log.v("SUCCESS RESPONSE", response);
networkCallback.onSuccess(response);
}catch (Exception e){
e.printStackTrace();
}
}
}
Why am i getting the response as junk? How do I get proper response?