cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15365] - HSSFSerializer internationalization support
Date Sat, 14 Jun 2003 00:40:47 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15365>.
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 internationalization support

joerg.heinicke@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
            Summary|HSSFSerializer does not     |HSSFSerializer
                   |serialize documents encoded |internationalization support
                   |in windows-1250(and probably|
                   |others)                     |



------- Additional Comments From joerg.heinicke@gmx.de  2003-06-14 00:40 -------
Hello Maciek,

the testfile you provided is already invalid XML:

org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/xml/cp1250.xml: java.io.UTFDataFormatException: Invalid byte 2 of
4-byte UTF-8 sequence.

So this was not useful as test case. But I read a bit in the POI Javadoc and
found this:
http://jakarta.apache.org/poi/javadocs/org/apache/poi/hssf/usermodel/HSSFCell.html#setEncoding(short),
stating "US/UK use 8-bit, rest of the western world use 16bit". I guess US/UK
can use 16bit too and so there should be no problem setting it to 16bit.

I have added this hack to the constructor, not the setContent() method. A bit
less hacky ;-) (both in Cocoon 2.0 and 2.1).

Joerg

Mime
View raw message