diff options
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/database')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java b/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java index 3d425648..69cde40b 100644 --- a/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java +++ b/juick-server-jdbc/src/main/java/com/juick/database/MySqlUpdater.java @@ -17,6 +17,7 @@ package com.juick.database; +import org.apache.commons.codec.CharEncoding; import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; @@ -68,7 +69,7 @@ public class MySqlUpdater { InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(updateSqlResource); ) { if (is != null) { - String content = IOUtils.toString(is, StandardCharsets.UTF_8); + String content = IOUtils.toString(is, CharEncoding.UTF_8); if (StringUtils.isNotEmpty(content)) { String[] sqlArray = content.split(";"); if (sqlArray.length > 0) { |