codebude / QRCoder

A pure C# Open Source QR Code implementation
MIT License
4.66k stars 1.11k forks source link

Mixed Mode QR code #585

Open dandodadon opened 5 days ago

dandodadon commented 5 days ago

Type of issue

[ ] Bug
[X] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement

Expected Behavior

Hi, I just have question for how to generate a QR code. I have requirement that the generated QR code should be Version 2 and ECC Q. I know the limited data length is 29, but my data length is 30. However, my data looks like this: 1X1234567890123456789012345:XX in this case, I think i can split it to 3 different parts using different encode mode. like: 1X -- Alpha Numeric 1234567890123456789012345 -- Numeric :XX -- AlphaNumeric this should work in this case.

But I'm not sure is it possible to do this?

Current Behavior

Possible Solution (optional)

Steps to Reproduce (for bugs)

Your Environment

Shane32 commented 5 days ago

QR code spec definitely allows for mixed-mode encoding, but there is no easy implementation available within QRCoder to do this currently.