Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code 39 not working with dash #147

Open
dhruvJaiswal opened this issue Mar 10, 2023 · 6 comments
Open

Code 39 not working with dash #147

dhruvJaiswal opened this issue Mar 10, 2023 · 6 comments

Comments

@dhruvJaiswal
Copy link

dhruvJaiswal commented Mar 10, 2023

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)

@rob313663
Copy link
Contributor

rob313663 commented Mar 10, 2023 via email

@barnhill
Copy link
Owner

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.

image

@barnhill
Copy link
Owner

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
image

Used to read:
https://online-barcode-reader.inliteresearch.com/
image

@barnhill
Copy link
Owner

Code39 and all other types should probably contain data validation and return error codes when invalid chars are detected

@rob313663
Copy link
Contributor

rob313663 commented Apr 28, 2024 via email

@barnhill
Copy link
Owner

Yep and it's supported in this lib too as the evidence above shows. My last comment was regarding invalid chars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants