Skip to content
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

non ascii characters #81

Open
AntonMezger opened this issue Jan 22, 2021 · 4 comments
Open

non ascii characters #81

AntonMezger opened this issue Jan 22, 2021 · 4 comments

Comments

@AntonMezger
Copy link

There is some problem with special characters. It seems that special characters like é, ö, è, ü, etc. are not represented in the qr-image.

@heuer
Copy link
Contributor

heuer commented Jan 22, 2021

A minimal code example would be helpful.

>>> import pyqrcode
>>> pyqrcode.create('é, ö, è, ü').png('test.png', scale=10)

Result
test

At least ZXing is able to decode it

@AntonMezger
Copy link
Author

Hi,

I downloaded PyQrCode-1.2.1

I toke your above example, it worked perfectly well when I scanned with QrBot on my Iphone. I had with the swiss PayEye scanner unknown characters. I will have to dig somewhere in.

Thanks

@heuer
Copy link
Contributor

heuer commented Jan 22, 2021

I see.
Is PayEye somehow related to the European Payments Council Quick Response Codes (EPC QR Codes)?

The EPC QR Codes make special demands on the encoding.

@heuer
Copy link
Contributor

heuer commented Jan 22, 2021

Found it. PayEye is for reading Swiss QR Codes a variant of the EPC QR Codes.

If you're developing Swiss QR Code support with PyQRCode I recommend to switch to another lib, PyQRCode is not maintained anymore.

Shameless plug: Segno. ;) It supports EPC QR Codes (but no Swiss QR Codes): https://segno.readthedocs.io/en/latest/epc-qrcodes.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants