小弟新手上路,在使用JAVA EXCEL API向EXCEL中导入中文时总是产生乱码,各位大侠看看是哪里出了问题,指点小弟一二.
附部分代码:
String fileName = "Til_" + testName.replace(' ', '_')+ ".xls";
res.setContentType("application/vnd.ms-excel");
res.setHeader("Content-Disposition", "inline;filename=" + fileName);   
ServletOutputStream out = res.getOutputStream();
workbook.write(out);
out.flush();
out.close();
return;