I am trying to issue the following query using Apache Olingo for OData using Java:
URI customersUri = client.newURIBuilder(serviceRoot)
.appendEntitySetSegment("Customers")
.filter("CustomerID eq 'Joe'")
.build();
The expected query string that I want is: $filter=CustomerID eq 'Joe'
However, when the library builds the above URI, the actual query string becomes like this:
%24filter%3DCustomerID+eq+%27Joe%27
Now, the problem is that when I use this query string for my OData Service, it seems that it does not accept the plus (+) signs. However, when removing the plus signs and use space instead, it works
Any help about this or recommendations please? Thanks