mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-04-10 05:55:58 +02:00
Set utf-8 encoding for MySQL connections
Fixes Xephi/AuthMeReloaded#458
This commit is contained in:
parent
dd03045bab
commit
0aa6f753be
@ -110,6 +110,12 @@ public class MySQL implements DataSource {
|
||||
ds.addDataSourceProperty("cachePrepStmts", "true");
|
||||
ds.addDataSourceProperty("prepStmtCacheSize", "250");
|
||||
ds.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
|
||||
|
||||
//set utf-8 as default encoding
|
||||
ds.addDataSourceProperty("characterEncoding", "utf8");
|
||||
ds.addDataSourceProperty("encoding","UTF-8");
|
||||
ds.addDataSourceProperty("useUnicode", "true");
|
||||
|
||||
ds.setUsername(this.username);
|
||||
ds.setPassword(this.password);
|
||||
ds.setInitializationFailFast(true); // Don't start the plugin if the database is unavailable
|
||||
|
Loading…
Reference in New Issue
Block a user