[
http://jira.codehaus.org/browse/DISPL-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88130
]
Giorgos Saslis-Lagoudakis commented on DISPL-307:
-------------------------------------------------
Don't know if you've fixed this already, but the DefaultHSSFExportView -- which
makes use of the HssfTableWriter class to create the table -- has the same
issue. This needs to be addressed in the writeHeaderFooter(String value,
HSSFRow row, HSSFCellStyle style) method of the HssfTableWriter class as well:
wrong:
this.currentCell.setCellValue(value);
this.currentCell.setCellStyle(style);
this.currentCell.setEncoding(HSSFCell.ENCODING_UTF_16);
right:
this.currentCell.setEncoding(HSSFCell.ENCODING_UTF_16);
this.currentCell.setCellValue(value);
this.currentCell.setCellStyle(style);
thanks!
Giorgos
> ExcelHssfView sets Encoding for headerColumn too late
> -----------------------------------------------------
>
> Key: DISPL-307
> URL: http://jira.codehaus.org/browse/DISPL-307
> Project: DisplayTag
> Issue Type: Bug
> Components: Export
> Affects Versions: 1.1
> Reporter: Mike Lindenblatt
> Fix For: 1.1.1
>
> Original Estimate: 3 minutes
> Remaining Estimate: 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
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel