try {
String newtype = new String(s.getBytes("iso8859-1"),"GBK");
     } catch (UnsupportedEncodingException uee) {
uee.printStackTrace();
}需要放在try里面。