diff options
Diffstat (limited to 'juick-rss/src/main/java/com')
-rw-r--r-- | juick-rss/src/main/java/com/juick/rss/configuration/RssInitializer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-rss/src/main/java/com/juick/rss/configuration/RssInitializer.java b/juick-rss/src/main/java/com/juick/rss/configuration/RssInitializer.java index a66fcca7..2dd6d117 100644 --- a/juick-rss/src/main/java/com/juick/rss/configuration/RssInitializer.java +++ b/juick-rss/src/main/java/com/juick/rss/configuration/RssInitializer.java @@ -1,6 +1,7 @@ package com.juick.rss.configuration; import com.juick.configuration.DataConfiguration; +import org.apache.commons.lang3.CharEncoding; import org.springframework.web.filter.CharacterEncodingFilter; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; @@ -28,8 +29,7 @@ public class RssInitializer extends AbstractAnnotationConfigDispatcherServletIni @Override protected Filter[] getServletFilters() { - CharacterEncodingFilter characterEncodingFilter = new CharacterEncodingFilter(); - characterEncodingFilter.setEncoding("UTF-8"); + CharacterEncodingFilter characterEncodingFilter = new CharacterEncodingFilter(CharEncoding.UTF_8); return new Filter[]{characterEncodingFilter}; } |