String snn = "中华";byte[] buff = snn.getBytes("UTF-8"); int i = buff.length; System.out.println(i);//可以根据(i)得到的数字,转换出(中华)