乱码解决 将乱码装换成utf-8;

String comId = request.getParameter("com_id");
comId = new String(comId.trim().getBytes("ISO-8859-1"), "UTF-8");  

你可能感兴趣的:(学习笔记)