ajax 异步处理中文乱码解决方法
页面:
var uri = ticket/addTicketDetail.do?movie=电影票";
uri=encodeURI(uri);
uri=encodeURI(uri);
$.post(uri,callbackTicketDetail,"json");注:红色代码,需要二次转码。
后台:
String movie= java.net.URLDecoder.decode(request.getParameter("movie"),"utf-8");
后台需要对该参数再次设置编码!
movie = 电影票
相关推荐
houjinkai 2020-03-01
xiaouncle 2020-01-23
gaoyubotaili 2014-06-18
心丨悦 2019-12-24
luofuIT成长记录 2019-12-15
Lincain 2019-11-16
killmice 2016-07-14
GoAheadY 2011-07-18
RickyHuo成长之路 2012-06-20
xiyf0 2018-05-30
yongzhang 2019-05-24
AbitGo 2019-04-12
haoxun0 2019-04-12
loveyy 2018-04-16
finnaxu 2016-04-29
87921432 2016-03-15
GimmeS 2016-03-01
LiTOPPPP 2015-06-09
QAnyang 2013-10-08