I was given a string like
example.com/test?region=us&lang=en&jurisdiction=us
How can I write the java code to decode the encoded characters like
&
in the string. Is there any existing class/method to decode them?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To unescape HTML/XML entities, use Apache Commons Text
StringEscapeUtilsor homegrow one.