Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to omit UTF-8 byte-order-mark #310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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;
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