POST parameters using wrong encoding in JSF 1.2
问题 I'm having a problem with charset encoding in my web application (JSF 1.2, Spring and Tomcat 7), and I've ran out of ideas of what to test to see where it is going wrong. Whenever I submit something like 'çã' I get 'çã': that means my data POSTed as UTF-8 is being converted to ISO-8859-1 somewhere in the JSF life cycle. I know that the wrong conversion is UTF-8 to ISO-8859-1 cause it's the same output for: System.out.println(new String("çã".getBytes("UTF-8"), "ISO-8859-1")); I believe that