mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Added unittest for PDF417 encoder using ISO-8859-1 with special chars
This commit is contained in:
parent
e31ac261e3
commit
18a72279dd
|
@ -36,6 +36,12 @@ public final class PDF417EncoderTestCase extends Assert {
|
||||||
PDF417HighLevelEncoder.encodeHighLevel(
|
PDF417HighLevelEncoder.encodeHighLevel(
|
||||||
"1%§s ?aG$", Compaction.AUTO, StandardCharsets.UTF_8);
|
"1%§s ?aG$", Compaction.AUTO, StandardCharsets.UTF_8);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testEncodeIso88591WithSpecialChars() throws Exception {
|
||||||
|
// Just check if this does not throw an exception
|
||||||
|
PDF417HighLevelEncoder.encodeHighLevel("asdfg§asd", Compaction.AUTO, StandardCharsets.ISO_8859_1);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testEncodeText() throws Exception {
|
public void testEncodeText() throws Exception {
|
||||||
|
|
Loading…
Reference in a new issue