模拟试题

3773考试网计算机等级考试模拟试题正文

2011计算机二级JAVA编程:中文乱码转换

来源:fjzsksw.com 2010-11-4 14:15:17

 

 

 中文乱码转换

  public String china(String args)

  {

  String s=null;

  String s=new String(args.getBytes("ISO-8859-1"),"gb2312");

  return s;

  }

触屏版 电脑版
3773考试网 琼ICP备12003406号-1