src/org/ohmage/jee/filter/Utf8RequestEncodingFilter.java
public void doFilter(
		final ServletRequest request,
		final ServletResponse response,
		final FilterChain chain) 
		throws ServletException, IOException {	

		// If no character encoding is present, default to UTF-8.
		if(request.getCharacterEncoding() == null) {
			request.setCharacterEncoding("UTF-8");
		}
		
		// Continue processing.
		chain.doFilter(request, response);
	}
/**
	 * Sets the character encoding on the request to be UTF-8.
	 */
Sets the character encoding on the request to be UTF-8.
Sets the character encoding on the request to be UTF - 8 .
public void doFilter(
		final ServletRequest request,
		final ServletResponse response,
		final FilterChain chain) 
		throws ServletException, IOException {	
		if(request.getCharacterEncoding() == null) {
			request.setCharacterEncoding("UTF-8");
		}
		chain.doFilter(request, response);
	}
public void doFilter ( final ServletRequest request , final ServletResponse response , final FilterChain chain ) throws ServletException , IOException { if ( request . getCharacterEncoding ( ) == null ) { request . setCharacterEncoding ( "UTF-8" ) ; } chain . doFilter ( request , response ) ; }
Sets the character encoding on the request to be UTF-8.
Sets the character encoding on the request to be UTF - 8 .
// If no character encoding is present, default to UTF-8. // Continue processing.