你直接将
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
中的charset=gb2312去掉看行不?
我试过好像可以!
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
中的charset=gb2312去掉看行不?
我试过好像可以!
<%@ page contentType="text/html; charset=GBK" language="java" import="java.sql.*" errorPage="" %>
从数据库提取的内容要加入一个转码函数的了!
public String getChinese(String str){//将码转换成中文
try{String temp_p=str;
byte[] temp_t=temp_p.getBytes("ISO8859-1");
// byte[] temp_t=temp_p.getBytes("GBK");
String temp=new String(temp_t,"GBK");
return temp;
}
“ 可以保存英文;但将String tt=request.getParameter("mm")改为
Stringtt=new String(request.getParameter("mm").getBytes
("8859_1"))后,编译出错!!”
还有 将页面初始化和提交处理分别放到2个页面时(Stringtt=new String
(request.getParameter("mm").getBytes("8859_1")) 不会出错!
不是说了是单页面处理吧。
1。N个表单+N个提交按钮(保存)
2。点击一个保存后,将相应的一个表单的信息存入数据
(access),但本页面保持不变(不转到其他页面),
用户可以继续添写本页的其他表单并保存;
怎么实现那????