JSP编写WAP输入中文乱码问题
1. %response.setContentType("text/vnd.wap.wml;charset=UTF-8";%//utf8
2. %request.setCharacterEncoding("UTF-8";%//参数处理方式utf8
3. %@ page pageEncoding="ISO-8859-1"%//页面字符处理方式 iso-8859-1
我的JSP例子说明:
输入页面test1.jsp :
1. %@ page contentType="text/vnd.wap.wml;charset=gb2312" %
2. %@ page pageEncoding="ISO-8859-1"%
3. ?xml version="1.0" ?
4. !DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"
5. wml
6. ca...[ 查看全文 ]