diff --git a/src/main/java/cokr/xit/base/ResponseHeaderFilter.java b/src/main/java/cokr/xit/base/ResponseHeaderFilter.java index b2af1548..e8909af6 100644 --- a/src/main/java/cokr/xit/base/ResponseHeaderFilter.java +++ b/src/main/java/cokr/xit/base/ResponseHeaderFilter.java @@ -28,6 +28,14 @@ public class ResponseHeaderFilter implements Filter { chain.doFilter(request, new HttpServletResponseWrapper((HttpServletResponse) response) { + @Override + public void setContentType(String type) { + if(type.equals("text/css") || type.equals("application/javascript") || type.equals("image/svg+xml")) { + type = type+";charset=UTF-8"; + } + super.setContentType(type); + } + @Override public void setHeader(String name, String value) {