You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/06/19 07:12:35 UTC

DO NOT REPLY [Bug 20899] New: - HSSFCell setCellValue problem

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=20899>.
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=20899

HSSFCell  setCellValue  problem

           Summary: HSSFCell  setCellValue  problem
           Product: POI
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: UNCONFIRMED
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: joblee@so-net.net.tw


when the string u is not a enlgish or number sentence,the file data have 
problem.

FileOutputStream  out = new FileOutputStream ("C:/workbook.xls");		
HSSFWorkbook wb = new HSSFWorkbook();
HSSFRow r = null;
HSSFCell c = null;
r = s.createRow((short)0);
c = r.createCell((short)0);	
String u="�����ܘZ��";
c.setCellValue(u);
c.setCellType( HSSFCell.CELL_TYPE_STRING );
c.setEncoding(HSSFCell.ENCODING_COMPRESSED_UNICODE);
wb.write(out);