code: public static String getRequestEncoding(ServletRequest request) {
  		String requestEncoding = request.getCharacterEncoding();
  		return requestEncoding != null ? requestEncoding : DEFAULT_REQUEST_ENCODING;
  	}
docs: Gets the request encoding or ISO-8859-1 when not available.