在java 中用 DynamicPDF 能支持中文嗎?
不懂的請不好回答.謝謝
問題補充:過濾的意思是中文直接不顯示了
設置了
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);
設置了
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);