I18N characters are not displayed correctly in excel view running on Weblogic 8.1. The chracters are replaced with 'question marks'.
JIRA standalone (Tomcat 4) produces an excel view with these characters displayed correctly - so the encoding is correctly set.
Weblogic incorrectly handles the encoding as set on the page for content of type 'application/vnd.ms-excel'.
The attached files indicate the issue - issue 'TP-999' contains Chinese characters that are displayed/encoded correctly when viewed as 'text/html'. The excel files are not encoded correctly showing these characters as question marks.
<weblogic-web-app>
<jsp-descriptor>
<jsp-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</jsp-param>
<jsp-param>
<param-name>compilerSupportsEncoding</param-name>
<param-value>false</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>
to your weblogic.xml file then it behaves better but this issues problem still exists, you seen characters instead of ?? but the characters are not correct. The line in excelheader.jsp:
response.setContentType("application/vnd.ms-excel;charset=" + ManagerFactory.getApplicationProperties().getEncoding());
seems to mess up the encoding, if we leave that line out and save the file and manually choose the correct encoding then the characters come out fine. But we can't leave out that line since it tells the browser to open the file in excel and for most applications servers that the encoding should be that of the application.