barnhill / barcode-java

Java Barcode Image Generation Library
MIT License
25 stars 14 forks source link

Code 128 does not encode correctly #3

Closed barnhill closed 5 years ago

barnhill commented 5 years ago

Does not encode 905216900040000000045771410179249000474750

correctly as a standard C128 barcode. Its starting with the CODE_A char which is incorrect as this is all numeric and should detect that and use CODE_C

barnhill commented 5 years ago

Found the issue. It has to do with how the start characters for each encoding type are found and inserted. Will put out a PR with the fix for this.

barnhill commented 5 years ago

Addressed with fb97ca0d34afcb2ee05bf7b2792043ceefbadee7