js传递后台中文乱码解决

js
var templetContent = document.getElementById("templetContent").value;
				var val = encodeURI(templetContent); 
					val = encodeURI(val); 


java
String temp = URLDecoder.decode(bean.getTempletContent(), "utf-8");

你可能感兴趣的:(java,bean)