try {
String newtype = new String(s.getBytes("iso8859-1"),"GBK");
} catch (UnsupportedEncodingException uee) {
uee.printStackTrace();
}需要放在try里面。
String newtype = new String(s.getBytes("iso8859-1"),"GBK");
} catch (UnsupportedEncodingException uee) {
uee.printStackTrace();
}需要放在try里面。
String newtype = new String(request.getParameter(s).getBytes("iso8859-1"), "GBK");
}
catch(UnsupportedEncodingException ex) {
ex.printStackTrace();
}
用好一点的编辑器吧