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

 

相关文章:

  • 2021-10-05
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-12-19
  • 2021-12-16
  • 2021-08-15
  • 2021-07-12
相关资源
相似解决方案