百度能找到解决的都没有解决字符集看过了 都是统一的
这一句也加了
<property name="jdbcUrl"
value="jdbc:mysql://localhost:3306/xulin?useUnicode=true&characterEncoding=UTF-8" />后台web增加删除用中文都没有问题前端读取数据库和插入中文都不行,插入变成问号.有没有人就救命
这一句也加了
<property name="jdbcUrl"
value="jdbc:mysql://localhost:3306/xulin?useUnicode=true&characterEncoding=UTF-8" />后台web增加删除用中文都没有问题前端读取数据库和插入中文都不行,插入变成问号.有没有人就救命
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 这个有吗
数据库表要建成utf8
提交的数据库连接要utf8
显示的页面也要设置成utf8
var fdata = serializeObject($("#registerform"));serializeObject = function(form) {
var o = {};
$.each(form.serializeArray(), function(index) {
if (o[this['name']]) {
o[this['name']] = o[this['name']] + "," + this['value'];
} else {
o[this['name']] = this['value'];
}
});
return o;
};