字符集的问题,把
row.createCell((short)colnum).setCellValue(data);
换成
cell = row.createCell((short)colnum);
cell.setEncoding(HSSFCell.ENCODING_UTF_16);
cell.setCellValue(data);
就可以了
row.createCell((short)colnum).setCellValue(data);
换成
cell = row.createCell((short)colnum);
cell.setEncoding(HSSFCell.ENCODING_UTF_16);
cell.setCellValue(data);
就可以了
row.createCell((short)colnum).setEncoding(HSSFCell.ENCODING_UTF_16);
row.getCell((short)colnum).setCellValue(data);
这是答案,我以解决,谢谢帮助
http://community.csdn.net/Expert/topic/4755/4755266.xml?temp=.122555