<%@ page language="java" contentType="text/html; charset=gbk"
    pageEncoding="gbk"%>
 <meta http-equiv="Content-Type" content="text/html; charset=gbk">

解决方案 »

  1.   

    我也是新手,charset=gb2312;
    提交的方式是post还是get?get方式的话可以在配制文件中改,
    你的action是不是编码了?
    request.setCharacterEncoding("gb2312");
    你试一试吧
      

  2.   

    本机配置的java环境:jdk1.6.0 ,tomcat6.0在MyEclipse6.0环境调试下通过。
    发表地址:请点
    在我的日志里,有问题请提问
      

  3.   

    本机配置的java环境:jdk1.6.0 ,tomcat6.0在MyEclipse6.0环境调试下通过。
    发表地址:请点
    在我的日志里,有问题请提问
      

  4.   

    插入数据库之前先转化下!
    写个类:
     public String convert(String str)
        {
            byte newstr[] = new byte[str.length()];
            for(int i = 0; i < str.length(); i++)
            {
                newstr[i] = (byte)str.charAt(i);
            }        return new String(newstr);
        }
    页面调用就可以了! 
    Str str = new Str();
    str.convert(request.getParameter("内容"));