as the title said, I have a problem between java and mysql
The mysql DB, tables, and columns are utf8_unicode_ci. I have an application that took some input from an
Solved, I forgot to add the encoding when initializing Connection:
before was:
con = DriverManager.getConnection("jdbc:mysql:///dbname", "user", "pass");
now (working):
con = DriverManager.getConnection("jdbc:mysql:///dbname?useUnicode=true&characterEncoding=utf-8", "user", "pass");