blob: f06b7de30a3e7e784a27a4f50ba93e95159d8f5f [file]
// "Replace with 'StandardCharsets.UTF-8'" "false"
package java.net;
import java.io.UnsupportedEncodingException;
import java.nio.charset.*;
class Test {
String test(String uri, String text) throws UnsupportedEncodingException {
return uri + "&test=" + URLEncoder.encode(text, "UTF<caret>-8");
}
}
class URLEncoder {
static String encode(String text, String encoding) {
return text;
}
static String encode(String text, Charset charset) {
return text;
}
}