| Summary: | Special Characters in ExcelEmitter not correct (Encoding?) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Dirk Gabler <dirk.gabler> | ||||
| Component: | BIRT | Assignee: | Yu Chen <yChen> | ||||
| Status: | CLOSED FIXED | QA Contact: | Xiaoying Gu <bluesoldier> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bluesoldier, dirk.gabler, iv, wyan | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 2.6.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | Obsolete | ||||||
| Attachments: |
|
||||||
|
Description
Dirk Gabler
Created attachment 183204 [details]
The file checks if the pagemargin settings and special characters work
Hi, I can not reproduce this issue in the 2.6.2 N-build. Could you please attache the xls file you generated here? The project character encoding should be changed to UTF-8 (from the preference). (In reply to comment #3) > The project character encoding should be changed to UTF-8 (from the > preference). sorry, wrong comment, please ignore it. OK, I can reproduce this issue in the latest 2.6.2 build(v20101117-0630) now. The Umlaute, EURO-Sign were in messy code in the exported xls. And on some pc, I can not even open the xls file. Fixed. Hi, i currently use Birt Version 2.4 and this bug is actual a major problem. Waiting and upgrading for/to fix version is currently a bad option for me. Has anyone involed in this ticket/solution an idea, e. g. a patch or workaround to resolve this bug in my working birt version 2.4 ? Thanxs for any response... (In reply to comment #7) > Hi, > i currently use Birt Version 2.4 and this bug is actual a major problem. > Waiting and upgrading for/to fix version is currently a bad option for me. Has > anyone involed in this ticket/solution an idea, e. g. a patch or workaround to > resolve this bug in my working birt version 2.4 ? Thanxs for any response... The way I worked around that bug is to take the ExcelXmlWriter out of the Eclipse-CVS and do the following patch in declareWorkSheetOptions-Method ------------------- private void declareWorkSheetOptions( String orientation, int pageWidth, int pageHeight ) { writer.openTag( "WorksheetOptions" ); writer.attribute( "xmlns", "urn:schemas-microsoft-com:office:excel" ); if ( context.getHideGridlines( ) ) { writer.openTag( "DoNotDisplayGridlines" ); writer.closeTag( "DoNotDisplayGridlines" ); } writer.openTag( "PageSetup" ); // PATCH START writer.openTag( "PageMargins" ); writer.attribute( "x:Bottom", "0.27559055118110237" ); writer.attribute( "x:Left", "0.27559055118110237" ); writer.attribute( "x:Right", "0.27559055118110237" ); writer.attribute( "x:Top", "0.27559055118110237" ); writer.closeTag( "PageMargins" ); // PATCH END ------------------- To activate that change, you have to unjar the emitter-jar in the birt plugin directory, replace the ExcelXmlWriter.class with the compiled one including that patch. If I remember right, the plugin needs to stay unpacked and the original jar has to be removed. This only workes, if you need a fix border width as shown in the sample. Cheers, Dirk |