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 chinese and japanese encode #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

xyzibu
Copy link

@xyzibu xyzibu commented Jun 9, 2017

No description provided.

@feixiangingk
Copy link

果然有大神解决了这个问题!膜拜一下

@feixiangingk
Copy link

feixiangingk commented Feb 1, 2018

还是无法转换呢。功能没有实现呀。附上我的错误信息,环境Python2.7
@xyzibu

line 16: version:6, mode:byte
Traceback (most recent call last):
File "E:/Gitworkspace/build_up/test_qrcode/python3_qrcde.py", line 44, in
GifQrcode().get_git("得得得")
File "E:/Gitworkspace/build_up/test_qrcode/python3_qrcde.py", line 41, in get_git
save_dir=os.getcwd()
File "D:\Python2.7\lib\site-packages\MyQR\myqr.py", line 94, in run
ver, qr_name = theqrmodule.get_qrcode(version, level, words, tempdir)
File "D:\Python2.7\lib\site-packages\MyQR\mylibs\theqrmodule.py", line 10, in get_qrcode
ver, data_codewords = data.encode(ver, ecl, str)
File "D:\Python2.7\lib\site-packages\MyQR\mylibs\data.py", line 19, in encode
code = mode_indicator[mode] + get_cci(ver, mode, str) + mode_encodingmode
File "D:\Python2.7\lib\site-packages\MyQR\mylibs\data.py", line 100, in byte_encoding
c = bin(ord(i.encode('iso-8859-1')))[2:]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal not in range(128)

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

Successfully merging this pull request may close these issues.

2 participants