Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

I have configured MySQL for UTF-8 But Still I have Problems

  Asked By: Lisa    Date: Dec 10    Category: Java    Views: 1432

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?



No Answers Found. Be the First, To Post Answer.