在页面顶部加上如下语句
<%@ page contentType="text/html;charset=gb2312"%>

解决方案 »

  1.   

    <%@ page contentType="application/msword;charset=gb2312" %>
    加上上面一句,JSP在IE中变得可以编辑的了,唉
    解决乱码问题最好用
    <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK" %>字符编码转换常用的方法是
      String native_encoded = "中文字符串"; 
                //本地编码的字符串
      Byte[] byte_array = native_encoded.getBytes(); 
                //得到本地编码的字节数组
      String net_encoded = new String(native_encoded, "ISO-8859-1"); 
                //生成ISO-8859-1编码的字符串
      

  2.   

    <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK" %>
    有这个就可以了,我的很正常呀。