获取记录集的一点疑问

来源:互联网 发布:无纸化办公软件 编辑:程序博客网 时间:2024/06/07 09:33
rs=RecordStore.openRecordStore("HelloWorld", true);

String str2="李四光";
rs.addRecord(str2.getBytes(), 0, str2.length());
byte[] hehe=rs.getRecord(1);
System.out.println(new String(hehe));

得到结果:李?


String str2="李四光";
byte[] b2=str2.getBytes();
rs.addRecord(b2, 0, b2.length);
byte[] hehe=rs.getRecord(1);
System.out.println(new String(hehe));

得到结果:李四光

为什么会这样?
0 0