package File;
import java.io.*;
import java.util.ArrayList;
import java.util.Arrays;
public class FileOutDemo {
public static void main(String[] args) throws IOException {
String s="中国";
//byte[] bytes = s.getBytes(); //UTF-8
byte[] bytes = s.getBytes("GBK");
System.out.println(Arrays.toString(bytes));
System.out.println(new String (bytes,"GBK"));
}
}