title: Retrofit encoding special characters
body: <p>I am using retrofit with gson instead of android since its faster and more secure. </p>
  
  <p>The problem is that retrofit is encoding special characters like <code>=</code> and <code>?</code>, and the url I'm using cannot decode these characters.</p>
  
  <p>This is my code:</p>
  
  <p>api class:</p>
  
  <pre><code>public interface placeApi {
  
  @GET("/{id}")
  public void getFeed(@Path("id") TypedString id, Callback&lt;PlaceModel&gt; response);
  }
  </code></pre>
  
  <p>Main class:</p>
  
  <pre><code>String url = "http://api.beirut.com/BeirutProfile.php?"; 
  String next = "profileid=111";
  
  
   //Creating adapter for retrofit with base url
      RestAdapter restAdapter = new RestAdapter.Builder().setEndpoint(url).setRequestInterceptor(requestInterceptor).build();
  
      //Creating service for the adapter
      placeApi placeApi = restAdapter.create(placeApi.class);
  
      placeApi.getFeed(id, new Callback&lt;PlaceModel&gt;() {
          @Override
          public void success(PlaceModel place, Response response) {
              // System.out.println();
              System.out.println(response.getUrl());
              name.setText("Name: " + place.getName());
          }
  
          @Override
          public void failure(RetrofitError error) {
              System.out.println(error.getMessage());
          }
      });
  </code></pre>
  
  <p>I tried solving the problem using this gson method but it didn't work, most probably because it only includes only the first part of the url and not the one I am sending to the <code>placeApi</code> interface:</p>
  
  <pre><code>Gson gson = new GsonBuilder().disableHtmlEscaping().create();
  </code></pre>
  
  <p>and added this when creating the restadapter:</p>
  
  <pre><code>RestAdapter restAdapter = new RestAdapter.Builder().setEndpoint(url).setRequestInterceptor(requestInterceptor).setConverter(new GsonConverter(gson)).setConverter(new GsonConverter(gson)).build();
  </code></pre>
  
  <p>Any help please?</p>