你好,我在用aspose.word for java在调试的时候出现了乱码,请参考此截图Screenshot 1.png (24.8 KB)
Screenshot 2.png (16.2 KB)
请我,是什么原因呢?
调试代码为:
private static void setCellValue(Cell cell, String str, boolean bAdd) {
NodeCollection nodes = cell.getFirstParagraph().getChildNodes();
if (nodes.getCount() == 0) {
Run run = new Run(cell.getDocument(), str);
nodes.add(run);
return;
}
if (!bAdd) {
cell.getFirstParagraph().removeAllChildren();
}
nodes.add(new Run(cell.getDocument(), str));
}