Comments (4)
Could you please try to set the forceUtf8 parameter in the createQRCode method to true and tell me if this solves your problems.
from qrcoder.
I've solved the problem. It's the bug in function CalculateECCWords(). the reason is the leading polyitem's coefficent is zero in some case, removing this item lead to the item count less than
eccWords, then continue doing XORs cause the final leadTermSource's last exponent is less than 0, so the wrong ECCWords are returned. The simple solution is appending an zero coefficient item in last position when removing the leading zero coefficient item. following is the code snippet.
for (var i = 0; (leadTermSource.PolyItems.Count > 0 && leadTermSource.PolyItems[leadTermSource.PolyItems.Count-1].Exponent > 0); i++)
{
if (leadTermSource.PolyItems[0].Coefficient == 0)
{
leadTermSource.PolyItems.RemoveAt(0);
leadTermSource.PolyItems.Add(new PolynomItem(0, leadTermSource.PolyItems[leadTermSource.PolyItems.Count - 1].Exponent - 1));
}
else
{
var resPoly = this.MultiplyGeneratorPolynomByLeadtermCoefficient(generatorPolynom, this.GetAlphaExpFromIntVal(leadTermSource.PolyItems[0].Coefficient), i);
resPoly = this.ConvertToDecNotation(resPoly);
resPoly = this.XORPolynoms(leadTermSource, resPoly);
leadTermSource = resPoly;
}
}
from qrcoder.
Reopened, so that I don't forget to implement and merge it.
from qrcoder.
Fixed in bafdd1f
from qrcoder.
Related Issues (20)
- Time Zone in Calendar events HOT 1
- WiFi Payload Won't Generate Correctly HOT 2
- Module size (note pixelsPerModule) HOT 1
- PlatformNotSupportedException when trying to generate QR Code. HOT 2
- Intelligent Mail, IM, postal barcode support? HOT 3
- Memory leak occurs when QR codes used Base64QRCode class HOT 4
- How to generate qr code with transparent background? HOT 2
- 更新到1.4.3,SvgQRCode没有了 HOT 4
- Why not use Color struct instead of byte[] in color parameters? HOT 1
- PayloadGenerator.WiFi.Authentication.WPA2 missing HOT 2
- Can Create a QR with shapes of my logo HOT 1
- Sample code fails - "QRCode" doesn't exist HOT 5
- Guidance on artistic QR codes HOT 1
- Trying to Convert a SVG QRCODE to PNG file HOT 3
- PayloadGenerator give the same result HOT 2
- How to read the code from image HOT 2
- Qr-code
- The type initializer for 'SkiaSharp.SKData' threw an exception. HOT 3
- Is it possible to crate a qr Code with FNC1 Type to build it as a QR CODE GS-1 Type? HOT 2
- QRCode namespace doesn't exist in .NET 8 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qrcoder.