Qbot icon indicating copy to clipboard operation
Qbot copied to clipboard

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

Open rainssong opened this issue 2 years ago • 9 comments
trafficstars

🐛 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 avatar May 19 '23 12:05 rainssong

image

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

github-actions[bot] avatar May 19 '23 13:05 github-actions[bot]

USE UTF-8

asdfsa1314 avatar May 20 '23 01:05 asdfsa1314

python 程序头部加入:

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

Charmve avatar May 24 '23 15:05 Charmve

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

dadaoerv avatar May 25 '23 01:05 dadaoerv

🐛 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 就好了。

duanruiw avatar Jun 06 '23 16:06 duanruiw

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

kcloze avatar Jun 08 '23 00:06 kcloze

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

zhangjinchu avatar Aug 17 '23 02:08 zhangjinchu

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

ByronLeeeee avatar Sep 06 '23 01:09 ByronLeeeee

requirements 确实有些问题,已经修复 #commit https://github.com/UFund-Me/Qbot/commit/9ea335fa4839ba738e802564c783585cf6fb678a

Charmve avatar Sep 20 '23 15:09 Charmve