问答详情
源自:3-1 显示学生资料——准备

存到数据库中的数据中文乱码

http://img.mukewang.com/569b36790001601506660177.jpg


Students s1 = new Students("s0000000","张三丰","男",new Date(),"武当山");
Students s2 = new Students("s0000001","张三丰1","男",new Date(),"武当山1");
Students s3 = new Students("s0000002","张三丰2","男",new Date(),"武当山2");
Students s4 = new Students("s0000003","张三丰3","女",new Date(),"武当山3");

求解

提问者:qq_逗猫人_0 2016-01-17 14:37

个回答

  • 爱谁谁已成年
    2016-12-11 15:28:31

    web.xml里面加个过滤器就不会出现中文乱码问题呢

  • qq_微笑向暖_1
    2016-01-19 11:30:24

    需要讲数据库的编码格式修改为UTF-8的模式,百度一下吧