mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 14:00:54 +07:00
GitOrigin-RevId: efca3927ee8d81bba9334461b133a10c2ac95216
22 lines
483 B
Java
22 lines
483 B
Java
// "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;
|
|
}
|
|
|
|
} |