Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 85715 invoked by uid 500); 13 Dec 2002 16:14:28 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 85675 invoked from network); 13 Dec 2002 16:14:27 -0000 Date: 13 Dec 2002 16:15:38 -0000 Message-ID: <20021213161538.9598.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: cocoon-dev@xml.apache.org Cc: Subject: DO NOT REPLY [Bug 15365] New: - HSSFSerializer does not serialize documents encoded in windows-1250(and probably others) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15365 HSSFSerializer does not serialize documents encoded in windows-1250(and probably others) Summary: HSSFSerializer does not serialize documents encoded in windows-1250(and probably others) Product: Cocoon 2 Version: Current CVS Platform: Other OS/Version: All Status: NEW Severity: Normal Priority: Other Component: sitemap components AssignedTo: cocoon-dev@xml.apache.org ReportedBy: maciejka@tiger.com.pl HSSFSerializer does not serialize documents encoded in windows-1250(and probably others). This is caused by the fact that it uses POI ENCODING_COMPRESSED_UNICODE encoding for strings. ENCODING_COMPRESSED_UNICODE is 8bit encoding so one bit is lost for 16bit encodings . Quick fix is to set encoding to ENCODING_UTF_16 in method setContent(final String content) of org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements.Cell: 112 void setContent(final String content) 113 throws IOException 114 { 115 _cell.setEncoding(HSSFCell.ENCODING_UTF_16); --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org