System.out.println("啊(Unicode) :" + "啊".getBytes("Unicode").length);
System.out.println("啊啊(Unicode) :" + "啊啊".getBytes("Unicode").length);
System.out.println("啊啊啊(Unicode) :" + "啊啊啊".getBytes("Unicode").length);
System.out.println("啊啊啊啊(Unicode) :" + "啊啊啊啊".getBytes("Unicode").length);
啊(Unicode) :4
啊啊(Unicode) :6
啊啊啊(Unicode) :8
啊啊啊啊(Unicode) :10 |
|