You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/09/25 12:51:02 UTC
[Bug 55594] SXSSF producing corrupt workbooks on z/OS with
EBCDIC-Encoding
https://issues.apache.org/bugzilla/show_bug.cgi?id=55594
Constantin <c....@googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #1 from Constantin <c....@googlemail.com> ---
Hi all,
we found a way to fix this problem:
We changed method
Writer createWriter(File fd)
in org.apache.poi.xssf.streaming.GZIPSheetDataWriter and
org.apache.poi.xssf.streaming.SheetDataWriter.
Following changes have been done:
GZIPSheetDataWriter.createWriter(File fd) ... {
return new BufferedWriter(new OutputStreamWriter(new GZIPOutputStream(new
FileOutputStream(fd)), "UTF-8"));
}
SheetDataWriter.createWriter(File fd) ... {
return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fd),
"UTF-8"));
}
We force writing data with UTF-8 encoding, because the whole workbook will be
written in UTF-8 as well.
Best regards
Constantin
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org