title: Unicode (Greek) characters are stored in the database like "??????"
body: <p>Greek characters in database are like question marks("?????"). I can't find a solution. I developed an application using Java/Swing but when I insert Greek letters in MySQL are like question marks. I changed db collation to utf8 and the columns too. My project encoding is set to UTF-8. When I insert Greek letters from MySQL then they are stored properly.</p>
  
  <p>I am using MySQL connector jar file.</p>
  
  <pre><code>public class Testing {
  
  /**
   * @param args the command line arguments
   */
  public static void main(String[] args) {
  
      try {
          Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/chartest","root","1234");
          Statement pst=conn.createStatement();
          String var1="ασδασδ";
          String sql="INSERT INTO chars(value) values('"+var1+"')";
         pst.execute(sql);
      } catch (SQLException ex) {
          Logger.getLogger(Testing.class.getName()).log(Level.SEVERE, null, ex);
      }
  }
  </code></pre>
  
  <p>}</p>