用JDBC连接MySQL的怪问题 就是字符xxx,另外如果我数据库里的值是123,打出来的却是qrs 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 试试<%@ page language="java" contentType="text/html; charset=GB2312"%>或DriverManager.getConnection("jdbc:mysql://localhost:3306/test?user=root&password=&useUnicode=true&characterEncoding=gb2312"); 我也碰到过是这样解决的jbuilder里面连接数据库的时候用String url ="jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=gb2312";这样就行了。<%@ page contentType="text/html; charset=GBK" %>这句也要有。 spring 3.0 和hibernate4.0最新视频推荐地址 MySQL 乱码问题 关于数据结构的性能问题 想要做个自己的网站有没有人能指个方向? 账号生成器 第一次做web,请问从何下手? 大家帮忙分析一下我这个使用JAVABEAN的问题! 请问怎样可以判断出我提交的数据只能包含数字?用javascript或其它方法? jsp中Date变量如何处理??? (500分赠送)谁能告诉我IIS+resin,jsp和IIS,asp,resin,jsp 的性能的比较? 帮推荐几本学习jsp方面的书!谢谢 Jbuilder8如何编辑运行JSP文件?
<%@ page language="java" contentType="text/html; charset=GB2312"%>
或
DriverManager.getConnection("jdbc:mysql://localhost:3306/test?user=root&password=&useUnicode=true&characterEncoding=gb2312");
是这样解决的
jbuilder里面连接数据库的时候用
String url ="jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=gb2312";
这样就行了。<%@ page contentType="text/html; charset=GBK" %>这句也要有。