code: protected String getEncoding(HttpServletRequest request) {
          final String encoding = request.getCharacterEncoding();
          if (encoding != null) {
              return encoding;
          }
  
          return this.defaultEncoding;
      }
docs: Tries to determine the encoded from the request, if not available falls back to configured
  default.
  
  @param request The current request.
  @return The encoding to use.