struts2 <sx:autocompleter>中文乱码解决
struts2 <sx:autocompleter>中文乱码解决
?
由于<sx:autocompleter>是get提交方法 我们只需要将提交的参数改下编码就可以了
?
name = new String(parentName.getBytes("ISO-8859-1"), "utf-8");
?
?
?
?
?
?
发布时间: 2013-11-08 17:52:32 作者: rapoo
struts2 <sx:autocompleter>中文乱码解决
struts2 <sx:autocompleter>中文乱码解决
?
由于<sx:autocompleter>是get提交方法 我们只需要将提交的参数改下编码就可以了
?
name = new String(parentName.getBytes("ISO-8859-1"), "utf-8");
?
?
?
?
?
?