0

I have a web application where the user will insert any text, including quotes etc. I am sending these to the database. Anyway all my quotes are being replaced with â?? no matter what I do. I tried the below with the use of apache commons-text still no good. I believe I tried all methods there, only thing happened was getting them printed with different characters instead of â??. I am trying to pass the text overweight or obese, ‘apple shaped’, have unhealthy eating habits

String message = StringEscapeUtils.unescapeHtml4(request.getParameter("message"));
System.out.println(message);

The result is simple as â??apple shapedâ??

How can I solve this matter?

PeakGen
  • 21,894
  • 86
  • 261
  • 463

0 Answers0