try{
// 解决下载文件的中文问题
String descFileName = "Web应用配置文件.xml";
byte[] b = descFileName.getBytes();
char[] c = new char[b.length];
for (int x = 0; x < b.length; x++)c[x] = (char) (b[x] & 0x00FF);
descFileName = new String(c);
}catch(Exception ex){
System.out.println("下载文件失败!<br>");
out.println("下载文件失败!<br>");
out.println("错误原因:<br>"+ex.toString());
}