You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Michael Jiang <it...@gmail.com> on 2011/07/06 05:14:31 UTC
encoding in XSSF?
I need to create excel sheet. Is there a way to specify encoding? For
example a cell that contains special character, e.g., "½", which I want to
use "UTF-8" to show the symbol correctly in the sheet. Otherwise, it would
be displayed improperly. Where to set it?
Thanks!
--Michael
Re: encoding in XSSF?
Posted by Nick Burch <ni...@alfresco.com>.
On Tue, 5 Jul 2011, Michael Jiang wrote:
> I need to create excel sheet. Is there a way to specify encoding?
You don't need to. POI handles this for you internally. As long as you
pass in the correct Java string for your text, POI will encode it
appropriately.
If you're having issues, check how your text is getting into Java
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org