title: Hibernate mysql utf8 configuration
body: <p>I am using hibernate 4.1.4, mysql connector is 5.1.6. Hibernate  and tomcat server.xml connector configuration are below. When I try to save I got that exception. Whats the wrong? </p>
  
  <p><code>Caused by: java.sql.SQLException: Incorrect string value: '\xC5\x9Fekk\xC3...'</code></p>
  
  <pre><code>&lt;Connector port="8080" maxHttpHeaderSize="8192"
             maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
             enableLookups="false" redirectPort="8443" acceptCount="100"
             connectionTimeout="20000" disableUploadTimeout="true"
             URIEncoding="UTF-8" /&gt;
  </code></pre>
  
  <p><code>&lt;hibernate-configuration&gt;
      &lt;session-factory&gt;
          &lt;property name="hibernate.dialect"&gt;org.hibernate.dialect.MySQLDialect&lt;/property&gt;
          &lt;property name="hibernate.connection.driver_class"&gt;com.mysql.jdbc.Driver&lt;/property&gt;
          &lt;property name="hibernate.connection.url"&gt;jdbc:mysql://localhost/*****?UseUnicode=true&amp;amp;characterEncoding=utf8&lt;/property&gt;
          &lt;property name="hibernate.connection.CharSet"&gt;utf8&lt;/property&gt;
          &lt;property name="hibernate.connection.characterEncoding"&gt;utf8&lt;/property&gt;
          &lt;property name="hibernate.connection.useUnicode"&gt;true&lt;/property&gt;
          &lt;property name="hibernate.connection.username"&gt;****&lt;/property&gt;
          &lt;property name="hibernate.connection.password"&gt;***&lt;/property&gt;
          &lt;property name="hibernate.hbm2ddl.auto"&gt;update&lt;/property&gt;
      &lt;/session-factory&gt;
  &lt;/hibernate-configuration&gt;</code></p>