NetBarcode icon indicating copy to clipboard operation
NetBarcode copied to clipboard

Incorrect generation result

Open YooPita opened this issue 3 years ago • 1 comments

I use an online generator and decrypt through an online reader and everything is correct.

But when I use this package, 0 is added to the beginning of the string when decrypting.

To repeat my case, you need to use Code128 and generate the string "765256359354976758112".

Version 1.7.0

YooPita avatar Nov 22 '22 13:11 YooPita

Hi @YooPita some news about this issue?

I think that the source of the problem is in the method that chooses the code128 type. In case your code has only numbers and the length is odd then a zero is added in front of the code. Maybe if the order of evaluation to choose the code type start from A, B, and C the problem will be fixed or maybe you just set explicitly the code type.

diegodfsd avatar Dec 15 '22 03:12 diegodfsd