/src/main/java/org/htmlunit/util/UrlUtils.java
} return new String( bytes2, UTF_8) ;final byte[] bytes2 = URLCodec.decodeUrl( bytes) ;
final byte[] bytes2 = URLCodec.decodeUrl ( bytes ) ; return new String ( bytes2, UTF_8 ) ; }
} return encode(query, QUERY_ALLOWED_CHARS, UTF_8); } public static String decode(final String escaped) { try { final byte[] bytes = escaped.getBytes(US_ASCII); <extra_id_0> catch (final DecoderException e) { throw new RuntimeException(e); } } private static String encode(final String unescaped, final BitSet allowed, final Charset charset) { final byte[] bytes = unescaped.getBytes(charset);