[ http://jira.codehaus.org/browse/DISPL-307?page=all ] fabrizio giustina closed DISPL-307: -----------------------------------
Resolution: Fixed fixed as suggested, thanks > ExcelHssfView sets Encoding for headerColumn too late > ----------------------------------------------------- > > Key: DISPL-307 > URL: http://jira.codehaus.org/browse/DISPL-307 > Project: DisplayTag > Type: Bug > Components: Export > Versions: 1.1 > Reporter: Mike Lindenblatt > Fix For: 1.1.1 > > Original Estimate: 3 minutes > Remaining: 3 minutes > > in ExcelHssfView: > line 127-129 the encoding should be set first: Please Correct this: > wrong: > cell.setCellValue(columnHeader); > cell.setCellStyle(headerStyle); > cell.setEncoding(HSSFCell.ENCODING_UTF_16); > right: > cell.setEncoding(HSSFCell.ENCODING_UTF_16); > cell.setCellValue(columnHeader); > cell.setCellStyle(headerStyle); > This is taken from the documentation: > setCellValue: > set a string value for the cell. Please note that if you are using full 16 > bit unicode you should call setEncoding() first. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel