On Mon, 27 Dec 2010, sanjaychandak wrote:
As there was no problem in jakarta-poi 3.0 as we were using setEncoding
method i.e. (setEncoding(HSSFCell.ENCODING_UTF_16);). Once we upgraded to
3.6 problem comes to render Polish characters and it throws the following
exceptions while doing export to excel i.e.
org.xml.sax.SAXParseException: Invalid byte 2 of 3-byte UTF-8 sequence.
HSSF should now do the correct thing when it comes to deciding on the
encoding of a cell, based on the contents. XSSF is XML based, and the low
level XML parser in the JVM does all the hard work for us.
From your exception, I'm guessing you're using XSSF rather than HSSF? What
did you do to get that exception? It doesn't look like the sort of thing
one should generally get except when monkeying around with the low level
xml stream is all..
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]