在java 中用 DynamicPDF 能支持中文嗎?
不懂的請(qǐng)不好回答.謝謝
問題補(bǔ)充:過濾的意思是中文直接不顯示了
設(shè)置了
response.setContentType("application/pdf;charset=gb2312");
中文處理成這樣
String test = bean.getField(j).toString();
if(test==null)test="";
String str = new String(test.getBytes("ISO-8859-1"),
"gb2312");
Cell cell = cellList.add(str);
設(shè)置了
response.setContentType("application/pdf;charset=gb2312");
中文處理成這樣
String test = bean.getField(j).toString();
if(test==null)test="";
String str = new String(test.getBytes("ISO-8859-1"),
"gb2312");
Cell cell = cellList.add(str);