diff --git a/crnk-core/src/main/java/io/crnk/core/engine/internal/utils/JsonApiUrlBuilder.java b/crnk-core/src/main/java/io/crnk/core/engine/internal/utils/JsonApiUrlBuilder.java index afb2b9e13..645af90c6 100644 --- a/crnk-core/src/main/java/io/crnk/core/engine/internal/utils/JsonApiUrlBuilder.java +++ b/crnk-core/src/main/java/io/crnk/core/engine/internal/utils/JsonApiUrlBuilder.java @@ -196,7 +196,13 @@ public void addQueryParameter(String key, final String value) { else { builder.append("&"); } - builder.append(key); + ExceptionUtil.wrapCatchedExceptions(new Callable() { + @Override + public Object call() throws Exception { + builder.append(URLEncoder.encode(key, encoding)); + return null; + } + }); builder.append("="); ExceptionUtil.wrapCatchedExceptions(new Callable() { @Override