I have configured MySQL to use unicode with the utf-8 encoding but still I get the wrong output. I'm using Tomcat as my container and I configure the connection as follows:
Class.forName("org.gjt.mm.mysql.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql:///dbtest?useUnicode=true&characterEncoding=UTF-8");
What else do I need to do to get it working? Do I have to configure something in the web.xml file?