Retrofit encode URL

0

How do I make my url containing a "+" be sent by retrofit with "encode" but currently the result url is:

http://api.xxxx.com.br/aluno?campo=220+2d+

And then my backend enede this + as a space, which gives me several problems.

The result of the url I want is this:

    http://api.xxxx.com.br/aluno?campo=220%2B2d%2B

What I tried now was to add encode to true in the querymap, but nothing changes:

    Call<JsonElement> updatealuno(@QueryMap(encoded = true) Map<String, String> campospraupdate);
    
asked by anonymous 28.02.2018 / 19:00

0 answers