to shisam:
wml:
<?xml version="1.0" encoding="gb2312"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card>
<p>
<img alt="*" src="logo.wbmp"/>用户姓名: <input name="usern" title="用户姓名" emptyok="false" value="张三" type="text" size="20"/><br/><img alt="*" src="logo.wbmp"/>用户性别: <input name="users" title="用户性别" value="男" type="text" size="4"/><br/><img alt="*" src="logo.wbmp"/>联系电话: <input name="phone" title="联系电话" format="*N" type="text" size="20"/><br/><img alt="*" src="logo.wbmp"/>联系地址: <input name="addr" title="联系地址" value="中国广州" type="text" size="50"/><br/><img alt="*" src="logo.wbmp"/>电子邮箱: <input name="email" title="电子邮箱" type="text" size="30"/><br/><do type="options" label="保存"><go href="wap.jsp?parameters=param^$(usern),param^$(users),param^$(phone),param^$(addr),param^$(email),transact^2|10.20.10.150,transcode^YHPZ00,sessionid^20704935," method="post"></go></do><do type="options" label="返回"><go href="wap.jsp?parameters=mod_name^YHFW.CON,sessionid^20704935," method="post"></go></do>
</p>
</card>
</wml>
服务器为普通jsp页面
大概:
<%
String parameters=request.getParameter("parameters");
......//分割各个参数
%>
但只要是汉字就是乱码,而且位数不对(如果转成UTF-8位数对,但汉字为"?",其它不对)
并我没有写
<%@page contentType=".......;charset=......"%>