struts2文件下载中文名乱码


	public String getDownFileName(){				//文件名,用于下载
		try {
			getResponse().setHeader("charset", "ISO8859-1");
			return new String(this.fileName.getBytes(), "ISO8859-1");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
		return null;
	}

你可能感兴趣的:(java,struts2文件下载乱码,struts2文件名乱码,struts2下载文件名乱码)