aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick/rss
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-16 15:41:14 +0300
committerGravatar Vitaly Takmazov2016-12-16 15:41:14 +0300
commit300a0439b2a6e26d9025247ef780c886616d4ae1 (patch)
treebcdb7613c2c5f37b870cbe18241894dba9428fae /src/test/java/com/juick/rss
parent18a8595d2150edc92084c94b9dbb8f4309d3ed36 (diff)
CharEncoding.UTF_8
Diffstat (limited to 'src/test/java/com/juick/rss')
-rw-r--r--src/test/java/com/juick/rss/LegacyRSS.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/juick/rss/LegacyRSS.java b/src/test/java/com/juick/rss/LegacyRSS.java
index ff84b784..1d6ef151 100644
--- a/src/test/java/com/juick/rss/LegacyRSS.java
+++ b/src/test/java/com/juick/rss/LegacyRSS.java
@@ -24,6 +24,7 @@ import com.juick.server.UserQueries;
import com.juick.util.DateFormattersHolder;
import com.juick.util.MessageUtils;
import org.apache.commons.dbcp2.BasicDataSource;
+import org.apache.commons.lang3.CharEncoding;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.jdbc.core.JdbcTemplate;
@@ -52,7 +53,7 @@ public class LegacyRSS {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
if (request.getCharacterEncoding() == null) {
- request.setCharacterEncoding("UTF-8");
+ request.setCharacterEncoding(CharEncoding.UTF_8);
}
String uri = request.getRequestURI();