Skip to content

Instantly share code, notes, and snippets.

@xjsender
Last active March 15, 2018 08:21
Show Gist options
  • Select an option

  • Save xjsender/77df8d88747073a3e0991ec44cd1aa6d to your computer and use it in GitHub Desktop.

Select an option

Save xjsender/77df8d88747073a3e0991ec44cd1aa6d to your computer and use it in GitHub Desktop.
Export File Name with Chinese
public String getFileName() {
    String fileName = '标准公有云及混托产品报价单';
    return EncodingUtil.urlEncode(fileName, 'utf-8') + '.xls';
}
contentType="txt/xml#{!fileName}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment