title: Display special characters using System.out.println
body: <p>I'm having trouble sending or displaying text with special characters from my webservice to my database. On my eclipse I have set the character encoding to UTF-8 but it still doesn't let me display the characters. For example a simple print like the code below</p>
  
  <pre><code>String test ="привет"; 
  System.out.println(test);
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>String test ="привет";
  String query = "insert into communication (`test`) VALUES ('"+ test +"');
  PreparedStatement preparedStmt1 = con.prepareStatement(query);
  preparedStmt1.executeUpdate();
  </code></pre>
  
  <p>The result on the console and if I send this to my database is ??????. How do I get this to display correctly on the console and hopefully in the database </p>