JSP往后台传值乱码问题

1:前台往后台送值

var param = "&ployId="+ployId+"&smsTamplateContent="+encodeURI(encodeURI(smsTamplateContent));

 2:后台接收

import java.net.URLDecoder;

String smsTamplateContent = HttpUtil.getAsString(request, "smsTamplateContent");
smsTamplateContent = URLDecoder.decode(smsTamplateContent , "utf-8");

 

你可能感兴趣的:(jsp)