A dst=String.fromBytes(src,"GBK").getBytes("UTF-8")
B dst=new String(src,"GBK").getBytes("UTF-8")
C dst=new String("GBK",src).getBytes()
D dst=String.encode(String.decode(src,"GBK")),"UTF-8" )
用new String(src,"GBK")解码得到字符串
用getBytes("UTF-8")得到UTF8编码字节数组

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-02-08
  • 2021-12-08
  • 2021-11-30
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案