I have a client API call that I need to make from a Java code.
For that I need to pass in a secret code for authentication.
I have the code generation logic with me but in JavaScript.
I am stuck trying to replicate this function.
unescape(encodeURIComponent(str))
Could someone help me out, how can I create this in Java.
I tried to use
`URLDecoder.decode(URLEncoder.encode(str, "UTF-8"), "UTF-8")`
But it is not giving me the same result.