win7系统下
用hibernate3.1向mysql 5.5插入中文时报错。
不是乱码,是插入不进去。
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
java.sql.BatchUpdateException: Incorrect string value:
'\xE8\x8E\x89\xE8\x8E\x89' for column 'username' at row 1请大神们看一下。是需要升级驱动?
用hibernate3.1向mysql 5.5插入中文时报错。
不是乱码,是插入不进去。
org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
java.sql.BatchUpdateException: Incorrect string value:
'\xE8\x8E\x89\xE8\x8E\x89' for column 'username' at row 1请大神们看一下。是需要升级驱动?
解决方案 »
- java堆为什么要固定?最近看了jvm书籍
- myeclipse 无法新建web项目
- 我的第一个服务器脚本:返回不全
- 一个关于RESIN中JAVA虚拟机的问题
- webwork(或struts2)的问题
- 加载hibernate.cf.xml时的问题,请看下....
- ireport子报表如何嵌套?
- session中SessionSynchronization的实现
- 运行http://localhost:7001/helloclient测试EJB,出现了以下错误
- 有大神知道怎样用java实现多线程图片批量下载吗?
- eclipse下部署tomcat的种种问题
- 生成帮助文档时出项的错误,有哪位大侠可以支招???
在mysql上执行插入中文的sql语句,看是否可以插入成功。执行 set names gbk;后接执行插入中文的sql语句,看插入是否成功。