- json 返回默认 Content-Type: application/json,非默认 utf-8 编码(比如 Edge 、Safari)浏览器测试中文乱码?
login_bp = Blueprint("login_bp", __name__, url_prefix="/api/v1") class LoginView(Resource): @marshal_with(user_fields) def get(self): users = User.query.all() # print(users) return users # return {"code":0 ,"msg": "中文测试"} api.add_resource(LoginView, "/login") - 如果 Content-Type: application/json;charset= 正常,请问如何处理呢?

