jsp传参数中文乱码问题url&后台


jsp——>jsp

加密:encodeURI(encodeURI("customerName"));

解密:decodeURI(decodeURI("customerName"));


jsp——>后台

jsp加密,

resultdata = encodeURI(encodeURI("customerName"));

后台解密:

String result = java.net.URLDecoder.decode(customerinfo.getCustomerName(),"UTF-8");


你可能感兴趣的:(java,jsp,json,乱码,url)