62,634
社区成员




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();
}