Skip to content

Commit

Permalink
Fixes UTF8 database connection issue.
Browse files Browse the repository at this point in the history
#582

Adjusts JDBC connection string to specifically use unicode and UTF8.
  • Loading branch information
tastybento committed Mar 1, 2019
1 parent bbeefc2 commit 98e0da6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class MySQLDatabaseConnector implements DatabaseConnector {
MySQLDatabaseConnector(DatabaseConnectionSettingsImpl dbSettings) {
this.dbSettings = dbSettings;
connectionUrl = "jdbc:mysql://" + dbSettings.getHost() + ":" + dbSettings.getPort() + "/" + dbSettings.getDatabaseName()
+ "?autoReconnect=true&useSSL=false&allowMultiQueries=true";
+ "?autoReconnect=true&useSSL=false&allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8";
}

@Override
Expand Down

0 comments on commit 98e0da6

Please sign in to comment.