VS
Size: a a a
VS
D
k
Z
D
k
PG
C
k
C
C
ММ
EM
EM
C
EM
ME
UnicodeEncoding.Unicode.GetChars(byte[] bytes) (возвращает char[]) в Java?AS
AS
byte[] bytes = "Привет".getBytes("UTF-8");
InputStreamReader reader = new InputStreamReader(new ByteArrayInputStream(bytes), "UTF-8");
char[] chars = new char[1024];
int read = reader.read(chars, 0, 1024);
for(int i = 0; i < read; ++i ) {
System.out.println(""+ i + ":" + chars[i]);
}