I have used this code to decode a URI string:
java.net.URLDecoder.decode(request.getParameter("comment"), "UTF-8")
. and it works. e.g.
Input: cl%C4%81mor
Output: clāmor
But when I use @MultipartConfig
in my java servlet file, this happens:
Input: cl%C4%81mor
Output: cl%C4%81mor
I am not sure why this didn't work. Can you tell me why this happened and/or how to fix it? Thanks in advance.