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

curl "http://127.0.0.1:5001/?que=你好"显示<p>Message: Bad request syntax ('GET /?que=ä½\xa0好 HTTP/1.1') #13

Open
hexingjay opened this issue Dec 11, 2018 · 4 comments

Comments

@hexingjay
Copy link

大神我要直接从程序请求这个接口 : curl "http://127.0.0.1:5001/?que=你好"显示

Message: Bad request syntax ('GET /?que=ä½\xa0好 HTTP/1.1') 会显示中文乱码问题,但是从浏览器请求是好的,能帮忙看看吗~~~~

@hexingjay
Copy link
Author

@yanwii

@yanwii
Copy link
Owner

yanwii commented Dec 12, 2018

你是使用什么程序调用这个接口,调用的时候有设置编码吗

@hexingjay
Copy link
Author

设置了utf-8 您可以用curl 命令试一下 就知道啦 curl "http://127.0.0.1:5001/?que=你好"

@hexingjay
Copy link
Author

@yanwii 冒昧的再问下作者哈~~~我错了~~~别嫌我烦哈~~~

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

No branches or pull requests

2 participants