mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
13 lines
351 B
Java
13 lines
351 B
Java
// "Replace with 'StandardCharsets.UTF_8'" "true"
|
|
import java.nio.charset.StandardCharsets;
|
|
|
|
import static java.nio.charset.StandardCharsets.*;
|
|
|
|
class Test {
|
|
void test(byte[] bytes) throws Exception {
|
|
int UTF_8 = 1;
|
|
String string = new String(bytes, StandardCharsets.UTF_8);
|
|
System.out.println(string);
|
|
string.getBytes(UTF_16);
|
|
}
|
|
} |