62,614
社区成员
发帖
与我相关
我的任务
分享
String s3 = "ftp中国";
try {
String s = new String(s3.getBytes(),"utf-8");
System.out.println(s);
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String s3 = "ftp中国";
try {
String s = new String(s3.getBytes(), "GBK");
System.out.println(s);
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}