-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
128 barcode are not accurate #24
Comments
Thanks for reporting, I'm investigating the issue. |
It appears to be happening when having an 'uneven' number of numbers: Generates a correct barcode:
Generates a barcode prefixed with 0:
Which appears to be coming from: NetBarcode/NetBarcode/Types/Code128.cs Line 255 in ad1402a
I don't have knowledge of the CODE128 barcode structure so this might be correct behaviour |
@Vandersteen I think it is correct behavior because Code128 automatically switch between the three subsets (A, B, and C) to code the data in the shortest form. Specifying Code128B specifically solved the issue for me. |
Hi,


I've tried to encode "10500400412728169" using 128 and 128C. They are the same. I've tried to decode using an online tool and it decodes as "010500400412728169".
This is the generated barcode
And this is the correct one that should be generated
Any thoughts on this?
The text was updated successfully, but these errors were encountered: