aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/config/AppConfig.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/config/AppConfig.java')
-rw-r--r--src/main/java/com/juick/config/AppConfig.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/config/AppConfig.java b/src/main/java/com/juick/config/AppConfig.java
index c579c64c..32926bd1 100644
--- a/src/main/java/com/juick/config/AppConfig.java
+++ b/src/main/java/com/juick/config/AppConfig.java
@@ -34,7 +34,6 @@ import io.pebbletemplates.pebble.loader.Loader;
import io.pebbletemplates.spring.extension.SpringExtension;
import io.pebbletemplates.spring.servlet.PebbleViewResolver;
-import org.apache.commons.codec.CharEncoding;
import org.commonmark.ext.autolink.AutolinkExtension;
import org.commonmark.node.Link;
import org.commonmark.parser.Parser;
@@ -49,6 +48,7 @@ import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.resource.ResourceUrlEncodingFilter;
import org.springframework.web.servlet.resource.ResourceUrlProvider;
+import java.nio.charset.StandardCharsets;
import java.util.Collections;
import javax.inject.Inject;
@@ -173,7 +173,7 @@ public class AppConfig {
PebbleViewResolver viewResolver = new PebbleViewResolver(pebbleEngine());
viewResolver.setPrefix("templates");
viewResolver.setSuffix(".html");
- viewResolver.setCharacterEncoding(CharEncoding.UTF_8);
+ viewResolver.setCharacterEncoding(StandardCharsets.UTF_8.name());
viewResolver.setExposeRequestAttributes(true);
return viewResolver;
}