"+" means "space" in Url. you can copy this% 2B.
Example
queryString = queryString.replace('+', '%2B');
Link Link
if there is only one parameter in the query string.
you can also get this via request.getQueryString () - there is no need to replace the query string here.
String urlContent = request.getQueryString();
Output: var = P + q + EvhE951eg / I5nz1vi / w2YpJdH + v / vSPaQNg / I =
source share