1)、request.setCharacterEncoding(“编码(utf-8/GBK/GB2312)”);
2)、response.setCharacterEncoding(“编码” ) ;\
3)、response.setContentType(“text/html ;charset=编码”) ;
4)、<%@page pageEncoding= “编码” contentType= “text/html;charset=编码”%>
5)、表单采用post提交
6)、强制转换编码 new String(“内容”.getBytes(“iso-8859-1” ), “UTF-8” ) ;
7)、过滤器
了解更多JSP技术,请看:
JSP从入门到精通2016+在线视频教学平台项目实训视频课程:https://edu.youkuaiyun.com/course/detail/3462
CRM客户关系管理系统商业项目视频课程视频课程:https://edu.youkuaiyun.com/course/detail/7870
JSP大型网上商城项目实训课程视频课程:https://edu.youkuaiyun.com/course/detail/9309
讲师课堂链接:https://edu.youkuaiyun.com/lecturer/893

1524

被折叠的 条评论
为什么被折叠?



