-
Notifications
You must be signed in to change notification settings - Fork 321
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
openqq, urlencode, 无效, 中文乱码 #271
Comments
url本身加引号,不要有反斜杠
|
# -*- coding: utf-8 -*-
import requests
id_ = 538***593 # *** 表示隐藏
content = "你好"
data = {"id": id_, "content": content, 'async': 1}
api = 'http://127.0.0.1:5000/openqq/send_group_message'
r = requests.post(api, data)
print(r.text) |
python的代码亲自跑了一下,我这里也没有乱码…… |
我这里
|
现在不仅仅是 openqq 发消息中文乱码, 更新到 v2.2.6 后, IRCShell 也是中文乱码。 |
你输入法或者输入终端使用的确定是utf8编码? |
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8 # 这里配置了中文环境 `LC_CTYPE=zh_CN.UTF-8`
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
|
curl http://127.0.0.1:5000/openqq/send_group_message\?id\=123456\&content\=大家好\&async\=1
curl http://127.0.0.1:5000/openqq/send_group_message\?id\=123456\&content\=hello%0A%E4%BD%A0%E5%A5%BD+%E5%8F%AF%E6%84%9B%E3%81%84%0Ahello2%0Ahello3\&async\=1
两个结果都是一样, 在 QQ 手机端, 显示的乱码。
The text was updated successfully, but these errors were encountered: