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

Add support to special characters #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

WendelHime
Copy link

@WendelHime WendelHime commented Jul 23, 2023

As a developer I'd like to generate QR codes for making mobile devices connect to the specified network. Right now the library doesn't support the required alphanumeric character ; so I'm creating this PR for making it work and also adding some other characters.

The current behavior of the application is raising an exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uQR.py", line 1276, in get_matrix
  File "uQR.py", line 1043, in make
  File "uQR.py", line 1109, in best_fit
  File "uQR.py", line 810, in write
TypeError: can't convert 'int' object to str implicitly

@cc123hh
Copy link

cc123hh commented Feb 17, 2024

As a developer I'd like to generate QR codes for making mobile devices connect to the specified network. Right now the library doesn't support the required alphanumeric character ; so I'm creating this PR for making it work and also adding some other characters.

The current behavior of the application is raising an exception:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uQR.py", line 1276, in get_matrix
  File "uQR.py", line 1043, in make
  File "uQR.py", line 1109, in best_fit
  File "uQR.py", line 810, in write
TypeError: can't convert 'int' object to str implicitly

作为一名开发人员,我想生成二维码以使移动设备连接到指定的网络。目前,该库不支持所需的字母数字字符; ,因此我正在创建此 PR 以使其正常工作,并添加一些其他字符。

应用程序的当前行为引发异常:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "uQR.py", line 1276, in get_matrix
  File "uQR.py", line 1043, in make
  File "uQR.py", line 1109, in best_fit
  File "uQR.py", line 810, in write
TypeError: can't convert 'int' object to str implicitly

I had the same problem.

And you, my friend, you are my personal hero!

@WendelHime WendelHime changed the title Add support to more alphanumeric characters Add support to special characters Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants