I am using fileDownloadActionListener as follows:
<af:fileDownloadActionListener contentType="text/plain; charset=ISO-8859-15"
filename="#{row.FileName}.txt"
method="#{backingBeanScope.backing_pages_general_files_download.downloadFile}"/>
The download works fine.
I have the application deployed on weblogic:
When I download the file from Windows deployment and open by notepad it shows encoding ANSI When I download the file from Linux deployment and open by notepad it shows UTF-8
But I need the encoding of the dowmloaded file to be ISO-8859-15 .
Any help would be appreciated.
I did it in the following way:
UTF-8
format ISO-8859-15
ISO-8859-15
ISO-8859-15
format jspx
that contains the view to contents of ISO-8859-15
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.