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