I have a hash key in one of my query params which can have + char with other special chars. The issue is when this URL is getting decoded URLDecoder converts + char into space. Is there a way we can enforce URLDecoder not to convert '+' into space.
Do this on your string before decoding:
String plusEncoded = yourString.replaceAll("\\+", "%2b")
The decoder will then show +
where it should've been