2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
5 package org.ufcspa.simdecs.mb.bn;
7 import java.io.IOException;
8 import java.io.Serializable;
9 import javax.servlet.*;
11 public class CharacterEncodingFilter implements Filter, Serializable
13 private static final long serialVersionUID = -4246457499875267088L;
16 public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
17 req.setCharacterEncoding("UTF-8");
18 resp.setCharacterEncoding("UTF-8");
19 chain.doFilter(req, resp);
23 public void init(FilterConfig filterConfig) throws ServletException {
27 public void destroy() {