Summary: | SXSSF generated corrupted report in z/OS on applying cell Style | ||
---|---|---|---|
Product: | POI | Reporter: | Renjith <ranju4u6> |
Component: | SXSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.10-FINAL | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Renjith
2014-06-30 11:47:02 UTC
The bad news is that this looks like it might be an xmlbeans bug Any chance you could add the xmlbeans generated source to your IDE, then step into the CTColor code in a debugger and see how it serialises the bytes into xml? See http://poi.apache.org/faq.html#faq-N1012A for help on getting the source of the CT classes Not sure if the following update will fix it. need to try it out. Updated writeTo() method of 'org.apache.poi.xssf.model.StylesTable'. Change: Added the following line 'DEFAULT_XML_OPTIONS.setCharacterEncoding("UTF-8");' /** * Write this table out as XML. * * @param out The stream to write to. * @throws IOException if an error occurs while writing. */ public void writeTo(OutputStream out) throws IOException { //Setting default encoding to UTF-8 DEFAULT_XML_OPTIONS.setCharacterEncoding("UTF-8"); XmlOptions options = new XmlOptions(DEFAULT_XML_OPTIONS); Since i dont have control over the z/os server, i have to wait till it get tested. In the mean time, please let me know your thoughts on the same. |