请问汉字显示问题 jdbc:mysql://localhost:3306/tourism_db?useUnicode=true&characterEncoding=iso-8859-1&user=root&password=root数据库连接中加上这么一段就好了. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 转码unitname=new String(request.getParameter("unitname").trim().getBytes("iso8859_1"),"GBK"); 对字符串进行一次编码,如String aa 是你读到的汉字文件内容aa=new String(aa.getBytes("iso8859_1"),"GBK");System.out.println(aa); java.lang.reflect.InvocationTargetException异常 firefox下用AJAX调用servlet的方法有时不能调用(不够分可加) jstl怎么用foreach循环集合里的string数组属性 怎么样实现JSP保存读取图片到sql server中?求思路。 ssh整合时报错! 求一个算法,要求高效 jquery.jmpopups-0.5.1.js使用问题 sql语句问题 大家好啊!关于测试原代码的问题,急啊! jsp中的代码写到javabean中去出错了,请帮忙看看! 如何禁止servlet刷新 询问
unitname=new String(request.getParameter("unitname").trim().getBytes("iso8859_1"),"GBK");
aa=new String(aa.getBytes("iso8859_1"),"GBK");
System.out.println(aa);