title: Scala/Slick JDBC encoding configuration with typesafe config
body: <p>I am building a Scala application using <a href="http://slick.typesafe.com/doc/3.1.0/database.html" rel="nofollow">Slick</a> where I load my <code>MySQLDriverbackend</code> with <code>val db = Database.forConfig("mysql.dev")</code> and where my "application.conf" file looks like</p>
  
  <pre><code>mysql = {
  dev = {
      dataSourceClass = "com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
      properties = {
        databaseName = "test"  
        user = "user"
        password = "password"
        serverName = "localhost"
        portNumber="3306"
      }
    }
  }
  </code></pre>
  
  <p>I am successfully saving data to my database which uses a default utf-8 encoding. However when trying to save the character 泗 I ended in my database with the dreaded <code>?</code> instead of input character. </p>
  
  <p>I think I failed to declare that my connection needs to use UTF-8, however I couldn't find the option in the documentation of <a href="http://slick.typesafe.com/doc/3.1.0/api/index.html#slick.jdbc.JdbcBackend$DatabaseFactoryDef@forConfig(String,Config,Driver,ClassLoader):Database" rel="nofollow"><code>forConfig</code></a>.</p>
  
  <p>Do you know how I can fix that?
  Thanks.</p>