poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D. Alvarado" <laredotorn...@coolgoose.com>
Subject HSSF: writing special characters doesn't work!
Date Wed, 11 Dec 2002 19:09:07 GMT
   Does anyone know of a bug (and maybe it's fixed now and I'm using an 
old version of HSSF) such that when you try to write special characters 
(characters with ascii values >= 128) to a cell in an Excel file, the 
characters just appeared as a square?

Here's a snippet of the code I used:

HSSFCell cell;
// create cell
char specialChar = (char) 146;
String cellText = specialChar + "";
cell.setCellValue(cellText);        // appears as a square when I open
                                    // the XLS document1

If this is a bug does anyone know of a work-around where I can get 
special characters to appear? 

Thanks, Dave

View raw message