在后台按下图转码即可还原中文 ==========a标签参数乱码 String a = "";try { a = new String(username.getBytes("ISO-8859-1"),"utf-8");} catch (UnsupportedEncodingException e) { e.printStackTrace();} gistfile1.txt ==========js异
==========a标签参数乱码 String a = ""; try { a = new String(username.getBytes("ISO-8859-1"),"utf-8"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); }gistfile1.txt
==========js异步方法参数乱码 // 两次转码 URLEncoder.encode("编码的是这里","GB2312") // 两次解码 URLDecoder.decode(str,"GB2312")