package ProOne;
import java.io.UnsupportedEncodingException;
import java.lang.*;
public class Example{
public static void main(String[] args) throws UnsupportedEncodingException{
String str="abc";
String obj=new String(str.getBytes("ISO-8859-1"),"UTF-8");
System.out.println(str.getBytes());
}
}
String obj=new String(str.getBytes("ISO-8859-1"),"UTF-8");
具体解释下上面的代码每部分的意思,谢谢哦,尤其是getBytes()括号里面的,和UTF-8