试试看下面的代码:
String uu="Unicode编码的字符串";
String u8="";
u8=new String(uu.getBytes("Unicode"),"utf8");
System.out.println(u8);注意,如果你的操作系统不支持utf8编码的字符的话,那么你输出的字符串会显示乱码祝你好运!
String uu="Unicode编码的字符串";
String u8="";
u8=new String(uu.getBytes("Unicode"),"utf8");
System.out.println(u8);注意,如果你的操作系统不支持utf8编码的字符的话,那么你输出的字符串会显示乱码祝你好运!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货