My web application (Java/Tomcat/Spring/Maven) is having trouble dealing with special characters like ’
(hex 92, decimal 146). This comes into my app as another weird character.
I have looked at this question and verified that I I have the following line in all my JSP files:
<%@ page contentType="text/html; charset=UTF-8" %>
I also looked at this question and verified that I have the following line in my Maven pom.xml:
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
So as far as I can tell everything should be built and handled in UTF-8. But when I submit the string Martin’s Auto Repair
what shows up at the server during the Spring binding process is Martinâ\u0080\u0099s Auto Repair
. This is the string that gets handed back by Tomcat to my application.
Worse, this is echoed back to the browser so submitting the altered string again expands the weird characters over and over.
Any suggestions? At this point I'm not sure if this is a browser problem or a server problem.