Skip to content

Conversation

@tvogel
Copy link

@tvogel tvogel commented Dec 11, 2024

...as it breaks EPC QR code recognition at least for some banks;

In EPC QR codes, one of the early fields designates the character encoding, so in the beginning, data is expected as ASCII and the BOM breaks that.

QR8bitByte(),
QRCodeModel():
new parameter useUtf8Bom which allows to omit the BOM;
QRCode.makeCode():
pass useUtf8Bom option to QRCodeModel;

update README.md;

...as it breaks EPC QR code recognition at least for some banks;

In EPC QR codes, one of the early fields designates the character encoding,
so in the beginning, data is expected as ASCII and the BOM breaks that.

QR8bitByte(),
QRCodeModel():
	new parameter useUtf8Bom which allows to omit the BOM;
QRCode.makeCode():
	pass useUtf8Bom option to QRCodeModel;

update README.md;
segdeha added a commit to segdeha/qrcodejs that referenced this pull request May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant