试试:
String cnStr = "中文显示";
cnStr = new String(cnStr.getBytes("GB2312"));
或
cnStr = new String(cnStr.getBytes("iso-8859-1"),"GB2312");
String cnStr = "中文显示";
cnStr = new String(cnStr.getBytes("GB2312"));
或
cnStr = new String(cnStr.getBytes("iso-8859-1"),"GB2312");
Table aTable = new Table(2, 2);
float[] intheaderwidths = { 18, 18};
aTable.setWidths(intheaderwidths);
aTable.setWidth(36);
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", false);
Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
Phrase ph = new Phrase("中文显示", FontChinese);
Cell cell = new Cell(ph);
aTable.addCell(cell);
......
BaseFont bfChinese = BaseFont.createFont("STSong-Light", "UniGB-UCS2-H", BaseFont.NOT_EMBEDDED);