I used a JavaScript method to encode a string:
var result = escape('Вася')
The resultant string is: "%u0412%u0430%u0441%u044F"
Now I need to decode this string in Java. How can I achieve this?
The following attempt did not work:
URLDecoder.decode(text, "UTF-8");