manuelbl/SwissQRBill

Extra trailing separator?

nguillaumin opened this issue · 2 comments

Hi,

When generating a barcode with the example code in the README I'm getting an extra separator (CRLF) after the EPD. This is visible when scanning the barcode, or by adding System.out.println("[" + QRBill.encodeQrCodeText(bill) + "]"); to the code snippet:

image

It looks in the spec that the last separator is supposed to be eliminated, see https://www.paymentstandards.ch/dam/downloads/ig-qr-bill-en.pdf page 25 section 4.1.4:

image

One bank we're working with complained about this. Is it a bug, or am I missing something?

Thanks,

Nicolas

Are you using the latest version of the library?

This part of the specification has been ambiguous initially. When it was clarified, this library has been updated to reflect it.

Thanks, I tried with the latest 3.0.3 and it's fixed indeed.