我用 mysql 只能读取,但是不能插入 .其中数据库 设置为utf-8.连接语句为
private String url = "jdbc:mysql://localhost:3306/db_shopping?useUnicode=true&characterEncoding=utf-8";网页中有此语句<%@ page contentType="text/html; charset=gb2312"%>
但为什么只能读取,就是不能插入.
怎样才能解决插入啊?关于那些编码怎样设置的啊?跪求高手了啊...
private String url = "jdbc:mysql://localhost:3306/db_shopping?useUnicode=true&characterEncoding=utf-8";网页中有此语句<%@ page contentType="text/html; charset=gb2312"%>
但为什么只能读取,就是不能插入.
怎样才能解决插入啊?关于那些编码怎样设置的啊?跪求高手了啊...
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货