diff --git a/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java b/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java index 74323098..38f98716 100644 --- a/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java +++ b/odata4j-core/src/main/java/org/odata4j/consumer/ConsumerCountRequest.java @@ -49,6 +49,7 @@ public int execute() throws ODataProducerException { } if(filter != null) { + filter = filter.replaceAll(" ", "%20").replaceAll("'", "%27"); uri = uri + "?$filter=" + filter; }