Hello,
Thank you for your inquiry.
According to your description, I did an initial test, but did not reproduce the issue you mentioned (my test code is as follows). The version I used is the latest version(
Spire.Doc for Java Version:5.1.9). If you were not using the latest version, please first give it a try. If the issue still exists after trying, please provide the following information. You could attach them here or send them to us via email (
support@e-iceblue.com). Thanks in advance.
1) Your input Word file (if any).
2) Your complete test code.
3) Your test environment, such as OS info (E.g. Windows 7, 64-bit) and region setting (E.g. China, Chinese).
4) Your JDK version (E.g. JDK 1.8 ).
- Code: Select all
Document document = new Document();
Section section = document.addSection();
Table table = section.addTable(true);
TableRow row = new TableRow(document);
row.setHeight(50.0f);
table.getRows().add(row);
TableCell cell = new TableCell(document);
Paragraph paragraph = cell.addParagraph();
//paragraph.applyStyle(style.getName());
paragraph.getStyle().getCharacterFormat().setFontName("Arial");
paragraph.getStyle().getCharacterFormat().setFontSize(12f);
paragraph.appendText("╫ק╫ר╫ש╫ס╫¬ ╫?╫ש╫¬╫ץ╫¿╫?╫? ╫?╫ץ╫? ╫?╫ש╫ש╫?");
row.getCells().add(cell);
document.saveToFile("result.docx",FileFormat.Docx);
Sincerely,
Annika
E-iceblue support team