title: MySql Jdbc Connector - localization issue
body: <p>I am trying to write a simple Java 
  client program that uses koi8r as its character set, and keep on failing.</p>
  
  <pre><code>Class.forName("com.mysql.jdbc.Driver");
  Connection conn2 = DriverManager.getConnection ("jdbc:mysql://localhost:3306/test","root",null);
  Statement stmt = conn2.createStatement();
  int result;
  result = stmt.executeUpdate("SET CHARACTER SET koi8r");
  
  stmt = conn2.createStatement();
  result = stmt.executeUpdate("DROP TABLE IF EXISTS װֱֱֲֳֹּ, t1, t2");
  stmt.close();
  assertEquals(0, result);
  </code></pre>
  
  <p>I'm getting</p>
  
  <pre><code>com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '???????, t1, t2' at line 1
  </code></pre>
  
  <p>When I put these commands in a script file and execute them using MySql client it works fine</p>
  
  <pre><code>SET CHARACTER SET koi8r
  DROP TABLE IF EXISTS װֱֱֲֳֹּ, t1, t2
  </code></pre>
  
  <p>I sniffed the network and I saw the the jdbc connector sends it with ?????? to the server, so I guess I'm missing some setting to the connection.
  Actually I tried (setEncoding, setCharactersEncoding, setConncetionCollation ...), but still failed.</p>