Skip to content

Commit

Permalink
Fix bug chinese character show garbled in MySQL (#543)
Browse files Browse the repository at this point in the history
Fix #482

Change-Id: I4705b7f24cda693c36d69726b203e59ea42d8c58
  • Loading branch information
Linary authored May 30, 2019
1 parent 0b5a702 commit 1c0874e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ private Connection open(boolean autoReconnect) throws SQLException {

URIBuilder uriBuilder = this.newConnectionURIBuilder();
uriBuilder.setPath(url)
.setParameter("characterEncoding", "utf-8")
.setParameter("rewriteBatchedStatements", "true")
.setParameter("useServerPrepStmts", "false")
.setParameter("autoReconnect", String.valueOf(autoReconnect))
Expand Down

0 comments on commit 1c0874e

Please sign in to comment.