public static String encodeQuery ( final String query , final String encoding ) { return encodeUriComponent ( query , encoding , URIPart . QUERY ) ; }
Encodes the given URI query with the given encoding .