String a = "ddddddd";
Byte[] buf = a.getBytes();
System.out.println(buf.length+"Byte="+buf.length/1024+"KB" );