Skip to content

响应体中存在奇数个汉字的时候必定乱码 #329

@yifei325325

Description

@yifei325325

响应体如下:

[
    {
        "description": "模拟一个基本的 RESTful API",
        "request":
        {
            "uri": "/hello"
        },
        "response":
        {
            "headers":
            {
                "Content-Type": "application/json; charset=utf-8",
                "Access-Control-Allow-Origin": "*",
                "Access-Control-Expose-Headers": "X-Requested-With",
                "Access-Control-Allow-Methods": "GET,POST,OPTIONS"
            },
            "json":
            {
                "result":
                [
                    {
                        "name": "字",
                        "age": 18
                    },
                    {
                        "name": "两字",
                        "age": 18
                    },
                    {
                        "name": "三个字",
                        "age": 18
                    },
                    {
                        "name": "四个字字",
                        "age": 18
                    },
                    {
                        "name": "有五个字字",
                        "age": 188
                    }
                ]
            }
        }
    }
]

显示结果如下:
image
希望开发者有空修复一下,不胜感激!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions