标签:
p:fileDownload and p:dataExporter :
for p:fileDownload, the Content-Disposition header should be set like this:
externalContext.setResponseHeader("Content-Disposition", contentDispositionValue + ";filename=\"" + content.getName() + "\";filename*=UTF8‘‘" + URLEncoder.encode(content.getName(), "UTF-8"));
p:dataExporter
filename=URLEncoder.encode("中文文件名", "UTF-8");
primefaces p:dataExporter filename 支持中文 utf8
标签:
原文地址:http://www.cnblogs.com/bigben0123/p/5655508.html