-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
question: automatic char at the end #75
Comments
A \n is appended to what exactly? That was really unclear. |
QRCodeData qrCodeData = qrGenerator.CreateQrCode(inputString, QRCodeGenerator.ECCLevel.Q); At the end of the inputString a \n is appended. The easiest mode to see it is use an empty string. In the same way, whatever is the inputString, the last character of the QRcode is a \n |
Are you sure, that this linebreak isn't added by your scanner app? (By the way which app/code do you use to decode the QR code?) I generated a QR code with your code above and stepped through the source of QrCoder. I can't find any code line, where a linebreak would be added. After that I checked the QR code with Henrik Kaare Poulsen's QR code debugger. That's the result:
As you can see the payload contains 0 chars (extractNumeric charcount = 0). It says numeric char count, because QR coder chooses the mode with the highest enconding possible. Since there are no input chars the Numeric mode is valid and since it has the best compression, it was used. Also the output (extractData data(0) =) is empty. So I think the new line is added by your code or the QR code reader you used for reading the code. |
Hi @Juliuss11 - can you re-check this? Or can anybody else proof or disprove my comment above? Otherwise I would like to close this issue in the next couple of days. |
Hi all,
thank for this fantastic library, it is very simple to use.
The only problem that I found is that at the end of the string is added, by default, a /n that it is uncomfortable in some application. (you can see it for example if you try to create an empty QRcode). It is possible to remove it? Thanks you so much
The text was updated successfully, but these errors were encountered: