Non-English Barcode Value
1D Barcodes
Most 1D barcodes encode a subset of ASCII character set. Code128 extends encoding to ISO-8859-1 character set by using the special symbol FNC4.
2D Barcodes
2D barcodes (PDF417, DataMatrix, QR), on the other hand, are capable of encoding text in any language. All output formats use UTF-8 encoding to accurately represent non-English file names and barcode text values. Localized language text can be encoded in the barcode in several ways:
Type | Generation process | auto-detection |
|---|---|---|
UTF8 | Text is encoded as UTF-8 before barcode generation | yes |
ECI | Barcode generator uses Extended Channel Interpretation | yes |
Generator | The Barcode generator encodes text according to barcode type specification, e.g., KANJI for QR code. | yes |
CodePage | Text encoded using language-specific code page before barcode generation. | no |
The barcode recognition engine automatically detects and outputs the UTF-8 barcode values for UTF8, ECI, and Generator types.
To get the UTF-8 value for CodePage-encoded value, your application should explicitly decode Data value.
String text = new String(Bc.getData(), Charset.forName("windows-1251"));NOTE: Using incorrect codepage barcodes results in an incorrect output text value.