diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-10-19 15:19:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 15:19:29 +0200 |
commit | c4bb941ec4669e94153a1425e371c59635bc19ee (patch) | |
tree | 528a98796cd304b4d9f1b81e23d47cf9c465cee9 /src/main/java/org/uic/barcode/staticFrame/UTLAYDataRecord.java | |
parent | Update uicRailTicketData_v3.0.0.asn (diff) | |
parent | Replaced StandardCharsets with Charset.forName (diff) | |
download | UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.tar UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.tar.gz UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.tar.bz2 UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.tar.lz UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.tar.xz UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.tar.zst UIC-barcode-c4bb941ec4669e94153a1425e371c59635bc19ee.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main/java/org/uic/barcode/staticFrame/UTLAYDataRecord.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/uic/barcode/staticFrame/UTLAYDataRecord.java b/src/main/java/org/uic/barcode/staticFrame/UTLAYDataRecord.java index 549a2e7..2d403e4 100644 --- a/src/main/java/org/uic/barcode/staticFrame/UTLAYDataRecord.java +++ b/src/main/java/org/uic/barcode/staticFrame/UTLAYDataRecord.java @@ -7,7 +7,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
+import java.nio.charset.Charset;
import org.uic.barcode.staticFrame.ticketLayoutBarcode.FormatType;
import org.uic.barcode.staticFrame.ticketLayoutBarcode.LayoutElement;
@@ -43,7 +43,7 @@ public class UTLAYDataRecord extends DataRecord { for (int i = 0; i < length; i++){
bytes[i] = byteData[i + offset];
}
- return StandardCharsets.UTF_8.decode(ByteBuffer.wrap(bytes)).toString();
+ return Charset.forName("UTF-8").decode(ByteBuffer.wrap(bytes)).toString();
}
/**
@@ -59,7 +59,7 @@ public class UTLAYDataRecord extends DataRecord { for (int i = 0; i < length; i++){
bytes[i] = byteData[i + offset];
}
- return StandardCharsets.ISO_8859_1.decode(ByteBuffer.wrap(bytes)).toString();
+ return Charset.forName("ISO-8859-1").decode(ByteBuffer.wrap(bytes)).toString();
}
/**
|