springmvc前台传递到controller层的中文乱码解决方法

//    乱码解决方法
String name = new String(userName.getBytes("iso-8859-1"), "UTF-8");
 String s = new String(sex.getBytes("iso-8859-1"), "utf-8");
相关文章
相关标签/搜索