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

部分中文和符号会出现乱码 #318

Open
MyDream33 opened this issue Apr 21, 2022 · 3 comments
Open

部分中文和符号会出现乱码 #318

MyDream33 opened this issue Apr 21, 2022 · 3 comments

Comments

@MyDream33
Copy link

MyDream33 commented Apr 21, 2022

response有设置"Content-Type": "application/json;charset=UTF-8",
image
image

@dreamhead
Copy link
Owner

Could you please provide your whole configuration?

@li-leon
Copy link

li-leon commented Mar 3, 2023

返回值部分中文乱码
[
{
"description": "这是第一个demo",
"request":
{
"uri": "/demo",
"method": "get"
},
"response":
{
"headers":
{
"Content-Type": "text/html; charset=utf-8"
},
"text": "这是第一个demo返回值"
}
}
]

浏览器显示:
这是第一个demo返回�?

[
{
"description": "这是一个会返回cookies信息的请求",
"request": {
"uri": "/getCookies",
"method": "get"
},
"response": {
"cookies": {
"login": "true"
},
"text": "恭喜获得一个cookie",
"headers":{
"Content-Type":"text/html;charset=utf-8"
}
}
}
]

浏览器显示:
恭喜获得�?个cookie

@ComeonBug
Copy link

ComeonBug commented Mar 3, 2023 via email

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

4 participants