protected String getEncoding ( HttpServletRequest request ) { final String encoding = request . getCharacterEncoding ( ) ; if ( encoding != null ) { return encoding ; } return this . defaultEncoding ; }
Tries to determine the encoded from the request if not available falls back to configured default .