jsp表单提交中文字符,request对象获取时乱码

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ancientear/article/details/82422490

页面编码方式
<%@ page contentType=”text/html; charset=utf-8”%>

传值编码方式
<% request.setCharacterEncoding(“utf-8”); %>

猜你喜欢

转载自blog.csdn.net/ancientear/article/details/82422490