How to create UTF-8 Encoded Datamatrix Barcode
DataMatrix is used to encode product and serial number information on electrical rating plates, to identify lenses, circuit boards and other items during manufacturing. DataMatrix barcodes can store up to 2000 characters. It is sometimes required that Barcode generated should be in UTF-8 Format.
Following is the simple code snippet demonstrating how to generate UTF-8 encoded DataMatrix barcode.
// Create instance of BarcodeBuilder class. BarCodeBuilder objBuilder = new BarCodeBuilder(); // Set the Barcode symbology to DataMatrix. objBuilder.setSymbologyType(Symbology.DataMatrix); // Set the Encoding mode of DataMatix barcode to Custom mode. objBuilder.setDataMatrixEncodeMode(DataMatrixEncodeMode.Custom); // Set the Barcode Text encoding mode to UTF-8. objBuilder.setCodeTextEncoding(Charset.forName("UTF-8")); // set the Barcode text value. objBuilder.setCodeText("Г¶Г¤ГјГ©Г ГЁ"); // Save the Barcode image. objBuilder.Save("test_output_Utf8.bmp", BarCodeImageFormat.Bmp);
Please review the release notes of Aspose.BarCode for Java 7.3.0 for a complete list of enhancements.
Aspose.BarCode for Java Resources
The resources you may need to accomplish your tasks:
Aspose.BarCode for Java Wiki docs – help documentation and API reference documents.
Aspose.BarCode Product Family Forum – post your technical questions and queries, or any other problem you faced while running Aspose.BarCode APIs.
Enable Email Subscription – Don’t limit yourself, you can keep yourself updated with the latest news on Aspose.BarCode APIs and new features, fixes, plus other API related topics by subscribing to Aspose.BarCode blog.
Aspose.BarCode for Java Examples – We have published our code examples on the social coding website GitHub.com. Anyone could explore the code examples for learning purposes.