anastaciocintra / escpos-coffee-samples

https://anastaciocintra.github.io/escpos-coffee
MIT License
48 stars 17 forks source link

J being printed as Z in barcode. #16

Open DawitMengistu opened 1 year ago

DawitMengistu commented 1 year ago

barcode.setHRIPosition(BarCode.BarCodeHRIPosition.NotPrinted_Default); barcode.setJustification(EscPosConst.Justification.Center); escpos.feed(2); escpos.write(barcode, "2J2J2J2J2J2J2J2J2J2J");

Here it prints 2Z2Z2Z2Z2Z2Z2Z2Z2Z2Z.

Again with escpos.write(barcode, "2H2I2J2Q2R2S2T"); it prints 2H2I2Z2Q2R2S2T.

DawitMengistu commented 1 year ago

With 1J2J3J4J5J6J7J8J9J0J, the result is 1Z2Z3Z4Z5Z6Z7Z8Z9Z0Z

With JJJJ-ZZZZ-jjjj-zzzz, the result is ZZZZ-ZZZZ-jjjj-zzzz

it seems it's only not working for Capital J.