Answer the question
In order to leave comments, you need to log in
How to create a DataMatrix with utf-8 (cyrillic) in Java?
Good time of the day. I ran into a problem: I can't create a DataMatrix with Cyrillic content. Advise an open-source library and, if available, a simple example
Tried libraries:
1. zxing. by default uses ISO 8859-1 encoding. I did not understand how you can ask another. hints.put(EncodeHintType.CHARACTER_SET, "UTF-8") doesn't help, because it doesn't get to read hints. and as I understand it, they do not have support for the eci segment.
2.barcode4j. the same story as with zxing
3. okapibarcode with Cyrillic generates something that is not clear. no online decoder recognized it.
there are also paid libraries, I connected aspose-barcode and everything is fine there, but because of that it doesn’t fit that paid ones
Answer the question
In order to leave comments, you need to log in
DataMatrix does not seem to know how to UTF-8 at all (maybe I'm very wrong about this, but the standard spoke about ISO-8859-1). You can try to do it with crutches, but then it will be read again only in your software, other readers will not understand what to give out.
Hm. I read your answer above. Stick the part of the code where you are trying to change the encoding.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question