首页
Java
登录
6mi
u
盘
搜
搜 索
Java
JSP获取表单数据出现中文乱码
JSP获取表单数据出现中文乱码
xiaoxiao
2021-02-28
32
method=”post”,在后台页面中添加以下代码
<%
request
.setCharacterEncoding(
"UTF-8"
); %>
method=”get”,修改server.xml文件(添加URIEncoding="UTF-8")
<
Connector
port
=
"8080"
protocol
=
"HTTP/1.1"
connectionTimeout
=
"20000"
redirectPort
=
"8443"
URIEncoding
=
"UTF-8"
/>
转载请注明原文地址: https://www.6miu.com/read-2613173.html
技术
最新回复
(
0
)