encodeURI 轉碼 反轉碼

前臺代碼json

vo.json=" +encodeURI(encodeURI(com.arrayToJson(arr)));code

後臺轉碼get

String st = request.getParameter("vo.json"); // 獲得請求參數
String str = URLDecoder.decode(st, "UTF-8"); // 字符轉碼後臺

相關文章
相關標籤/搜索