question: public static boolean isURLEncoded ( String data ) { boolean flag = true ; if ( ! regex_contains ( "([^\\x00-\\x7F])" , data ) ) { try { String tmp = URLDecoder . decode ( data , "ASCII" ) ; if ( tmp . equals ( data ) ) { return false ; } } catch ( UnsupportedEncodingException ex ) { flag = false ; } } else { flag = false ; } String pattern = "(%[a-zA-Z0-9]{2})" ; return ( flag && regex_contains ( pattern , data ) ) ; }
target:  Check for URL encoding.