0
I am sending the data by URL to my webservice if I put the path by example web browser in Chrome: meuwebservice/inserirusu/João_da_Silva/fotógrafo
and call a method to display shows so:
Nome: João da Silva
profi: Fotógrafo
Now when I call the method to follow it shows me so:
Nome: Jo?o da Silva
profi: Fot?grafo
I put to display the path I’m going through Android and is the same that I put by Chrome.
private void inserir(final String edicao) { edicao = "João_da_Silva/fotógrafo
showProgressDialog();
StringRequest strReq = new StringRequest(Request.Method.GET,
Const.URL_EDITAR_TRABALHADOR+edicao, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d(TAG, response.toString());
if(response.equal("Alterado"){
hideProgressDialog();
finish();
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
VolleyLog.d(TAG, "Error: " + error.getMessage());
hideProgressDialog();
}
});
// Adding request to request queue
AppController.getInstance().addToRequestQueue(strReq, tag_string_req);
}
How can I fix this?
I was making a mistake to display on logcat and showed me that this so android
meuwebservice/inserirusu/Jo?o_da_Silva/fot?grafo
more I displayed before sending and the path is correct in System
It worked when I used now is giving step example error
á
and so sends :%C3%A1
– Guilherme