Open dhruvJaiswal opened 1 year ago
Please attach image of the barcode and the contents it should contain together with the code used to generate it.
You have probably used a character that is not encodable in Code 39.
On Fri, Mar 10, 2023, 06:43 dhruvJaiswal @.***> wrote:
Barcode is getting generated using Code 39 from barcodelib but it is not getting scanned when using dash. all other barcode without dash is getting scanned
— Reply to this email directly, view it on GitHub https://github.com/barnhill/barcodelib/issues/147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFQNI4IZ4JMWBL7U4FCPNTLW3K5QDANCNFSM6AAAAAAVV7RPUE . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Just tested this on the upcoming branch for cross-platform compatibility and this scans just fine with Code39 and a dash added. I have to think that @rob313663 is correct and its not a standard dash character.
I think it has to do with the data formatted to be encoded. I tried your input with another online barcode generator and then scanned it on the same website and its detecting the same incorrect input data.
Used to generate: https://www.barcodesinc.com/generator/index.php
Used to read: https://online-barcode-reader.inliteresearch.com/
Code39 and all other types should probably contain data validation and return error codes when invalid chars are detected
Code 39 has supported dash since it was invented in 1974.
On Sun, Apr 28, 2024, 22:34 Brad Barnhill @.***> wrote:
Code39 and all other types should probably contain data validation and return error codes when invalid chars are detected
— Reply to this email directly, view it on GitHub https://github.com/barnhill/barcodelib/issues/147#issuecomment-2081645698, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFQNI4P62X4QPXI6YZJLHU3Y7VMOBAVCNFSM6AAAAAAVV7RPUGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGY2DKNRZHA . You are receiving this because you were mentioned.Message ID: @.***>
Yep and it's supported in this lib too as the evidence above shows. My last comment was regarding invalid chars.
Barcode is getting generated using Code 39 from barcodelib but it is not getting scanned when using dash. all other barcode without dash is getting scanned (Ex : FS-501M/L/XL)