前台中文表单传入后台 获取的时候乱码 在线等 急死我!!!!
.web.xm里面也设置了:<filter><filter-name>Springcharacterencodingfilter</filter-name><filter...
.web.xm 里面也设置了:
<filter>
<filter-name>Spring character encoding filter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
然后jsp页面也是
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
</head>
但是在后台接收的时候 还是乱码 !!怎么办!!!!
myeclipse 里面的也是设置的utf-8 但是就是乱码.....哭瞎了 展开
<filter>
<filter-name>Spring character encoding filter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
然后jsp页面也是
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
</head>
但是在后台接收的时候 还是乱码 !!怎么办!!!!
myeclipse 里面的也是设置的utf-8 但是就是乱码.....哭瞎了 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询