struts2 uploadify 批量上传图片文件名出现乱码

解决办法

在action中加入下面代码进行文件名编码的转换就可以了

fileName = new String(fileName.getBytes("GBK"),"UTF-8");

 

 

完了

你可能感兴趣的:(struts,String,action)