not able to generate QR code using QRCoder dll with text input string having # and ?

Swati Sharma 0 Reputation points
2025-05-09T05:38:37.6766667+00:00

QR code is not getting generating when input string is: abc#?abc

QRCodeGenerator l_qrGenerator = new QRCodeGenerator();

        QRCodeData l_qrCodeData = l_qrGenerator.CreateQrCode(inputstring, QRCodeGenerator.ECCLevel.Q);

            QRCode l_qrCode = new QRCode(l_qrCodeData);

Please let us know how to resolve it with such inputs. with other special characters QR code is getting generated.

Developer technologies C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2025-05-09T05:50:56.3866667+00:00

    QRCodeData is not a Microsoft product.

    Contact the author via https://github.com/codebude/QRCoder

    0 comments No comments

  2. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2025-05-09T15:35:38.2033333+00:00

    Expected behavior. Neither # nor ? are supported characters by QR alpha numeric encoding. To support them you need to switch to binary/byte encoding. I believe your library supports binary encoding.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.