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

'gbk' codec can't decode byte 0xa3 in position 83: illegal multibyte sequence #6

Open
rainssong opened this issue May 19, 2023 · 9 comments
Labels
bug_fixed fixed_bug bug Something isn't working good first issue Good for newcomers

Comments

@rainssong
Copy link

🐛 Bug Description

'gbk' codec can't decode byte 0xa3 in position 83: illegal multibyte sequence

To Reproduce

pip install -r requirements.txt

Environment

win11

Additional Notes

requirements.txt Save As UTF-8 with BOM will solve the problem

@rainssong rainssong added the bug Something isn't working label May 19, 2023
@github-actions
Copy link

github-actions bot commented May 19, 2023

image

Hey @{user}! Welcome to the QBOT repo on Github.

@asdfsa1314
Copy link

USE UTF-8

@Charmve Charmve added the good first issue Good for newcomers label May 22, 2023
@Charmve
Copy link
Member

Charmve commented May 24, 2023

python 程序头部加入:

#!/usr/bin/python
# -*- coding: UTF-8 -*-

@Charmve Charmve added the bug_fixed fixed_bug label May 24, 2023
@dadaoerv
Copy link

上面的issue提出了是windows11,
并且python3.x默认使用UTF-8编码;
#!/usr/bin/env python在Window系统下相当于普通的注释,并没有意义。

@duanruiw
Copy link

duanruiw commented Jun 6, 2023

🐛 Bug Description

'gbk' codec can't decode byte 0xa3 in position 83: illegal multibyte sequence

To Reproduce

pip install -r requirements.txt

Environment

win11

Additional Notes

requirements.txt Save As UTF-8 with BOM will solve the problem

这个能解决,
原文件编码 是个 UTF-8 with NO BOM的 调整成 UTF-8 with BOM 就好了。

@kcloze
Copy link

kcloze commented Jun 8, 2023

没有解决吗?安装的时候同样报这个错误

@IIIgnac
Copy link

IIIgnac commented Aug 17, 2023

Win11下环境变量添加PYTHONUTF8,值填1,关掉终端重启

@ByronLeeeee
Copy link

项目里面的requirements.txt用了UTF-8保存,需要以UTF - 8 with BOM另存为(或覆盖)就可以

@Charmve
Copy link
Member

Charmve commented Sep 20, 2023

requirements 确实有些问题,已经修复 #commit 9ea335f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug_fixed fixed_bug bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

8 participants