I have a rest api and when I enter a URL in the browser, part of the URL looks like this:
...where+%7B%0D%0A%3Fs+<http%3A%2F%2F...
which actually stands for
...where { ?s <http://...
Now, when I have to call the same URl through my JAVA code, I know of URLEncoder using which I am encoding the URL. When I use "UTF-8" format, the "<" in the URL is also encoded as %3C.
Is there any way of encoding such that the "<" and ">" are retained while other parts of the URL such as spaces and others are encoded properly.