Skip to content

Commit 2c92884

Browse files
committed
Add PdfString test with unicode string.
1 parent 0928214 commit 2c92884

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/src/test/java/com/itextpdf/kernel/pdf/PdfStringTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,10 @@ public void testPdfDocumentInfoStringEncoding01() throws IOException, Interrupte
9494
Assert.assertNull(new CompareTool().compareByContent(destinationFolder + fileName, sourceFolder + "cmp_" + fileName, destinationFolder, "diff_"));
9595
}
9696

97+
@Test
98+
public void testUnicodeString() throws IOException, InterruptedException {
99+
String unicode = "Привет!";
100+
PdfString string = new PdfString(unicode);
101+
Assert.assertNotEquals(unicode, string.toUnicodeString());
102+
}
97103
}

0 commit comments

Comments
 (0)