JDBC的URL加上"?charset=gb2312"试试
解决方案 »
- poi ,就因为是汉字?
- 求一个javascript语句
- 财务系统的凭证这个模块是做什么用的啊~
- 请教:从数据库取10个数据,在jsp里以2行5列方式存放,请教如何实现?
- 如何在JAVA中利用元数据验证从Sql server中获得的数据并根据元数据生成XML
- 我调试JSP发送email时出现的错误,请帮我看一下。
- 想用WAP+jsp做硕士毕业论文,能给个方向参考吗?
- Jstl set 对象,不能获得属性,求解!
- 谁知道replaceAll()方法,怎么实现,我用JB7怎么没有那个方法啊。
- 求助:struts1的配置问题
- 在RESIN中,我把欢迎页面去掉了。但为社么会出来Resin® Default Home Page页面呢?
- tomcat3。23的程序移植时出现的编码问题,在线等待
public static String GB2UNI(String s) throws Exception{
String temp = new String(s.getBytes("GBK"),"ISO8859_1");
return temp;
}
public static String UNI2GB(String s) throws Exception{
String temp = new String(s.getBytes("ISO8859_1"),"GBK");
return temp;
}
public static String UNI2UNI(String s) throws Exception{
String temp = new String(s.getBytes("ISO8859_1"),"ISO8859_1");
return temp;
}
}