·?±ù±ù
????
è????°??°
范冰冰
String name = new String(this.getName().getBytes("iso8859-1"),"utf-8");
求问问题出在哪,是编码不同嘛?应该怎样改?
上面两行输出一个是转码前,一个是转码后,就是说我这样写谷歌浏览器能转码成功,ie11却不行
this.getName().换成request.getgetParameter("name").getBytes("ISO-8859-1"),"UTF-8");试下。