We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can I make the module recognize the Cyrillic alphabet?
My code: image = pyqrcode.create('АБВГД', encoding='UTF-8') image.png(fileName, scale=4) When scanning, it gives out question marks "?????"
image = pyqrcode.create('АБВГД', encoding='UTF-8') image.png(fileName, scale=4)
The text was updated successfully, but these errors were encountered:
The cyrillic characters are detected as Kanji:
>>> qr = pyqrcode.create('АБВГД') >>> qr.mode 'kanji'
That seems to be correct but it is a bug that the provided encoding is ignored.
>>> qr = pyqrcode.create('АБВГД', encoding='utf-8') >>> qr.mode 'kanji'
This lib is not actively maintained, give (shameless plug) Segno a try:
>>> import segno >>> qr = segno.make_qr('АБВГД') >>> qr.mode 'kanji'
If you provide an encoding, the result should be correct:
>>> import segno >>> qr = segno.make_qr('АБВГД', encoding='utf-8') >>> qr.mode 'byte'
Or you provide the content as bytes
>>> import segno >>> qr = segno.make_qr('АБВГД'.encode('utf-8')) >>> qr.mode 'byte'
Result:
Sorry, something went wrong.
Added test case for mnooner256/pyqrcode#76
527d88a
No branches or pull requests
How can I make the module recognize the Cyrillic alphabet?
My code:
image = pyqrcode.create('АБВГД', encoding='UTF-8') image.png(fileName, scale=4)
When scanning, it gives out question marks "?????"
The text was updated successfully, but these errors were encountered: