IE提交数据库显示乱码,360和chrome显示正常

              //解决post中文乱玛

// try {

// request.setCharacterEncoding("UTF-8");
// } catch (UnsupportedEncodingException e1) {
// // TODO Auto-generated catch block
// e1.printStackTrace();
// LOG.error(e1);
// LOG.error(e1.getMessage());
// }
//解决get中文乱码
        String str ;  
byte b[] =content.getBytes("UTF-8");  

猜你喜欢

转载自blog.csdn.net/zharen351991/article/details/51260369