/**
* 修改系统后默认的编码
* @author Administrator
*
*/
public class UpdateCharcode {
public static void main(String[] args) {
System.getProperties().put("file.encoding", "iso8859-1");
System.getProperties().list(System.out);
String str = "问题";
for(int i = 0;i<str.length();i++){
System.out.println(Integer.toHexString((int)str.charAt(i)));
}
byte[] buf = str.getBytes();
for(int i =0;i<buf.length;i++){
System.out.println(Integer.toHexString(buf[i]));
}
System.out.println(str);
for(int i=0;i<buf.length;i++){
System.out.println(buf[i]);
}
//System.out.println();
}
}