返回的json数据中包含中文,但前端显示乱码,添加了
app.config['JSON_AS_ASCII'] = False
仍然没有解决,
app.config['JSONIFY_MIMETYPE'] = "application/json;charset=utf-8"
又设置了charset=utf-8显示正常
返回的json数据中包含中文,但前端显示乱码,添加了
app.config['JSON_AS_ASCII'] = False
仍然没有解决,
app.config['JSONIFY_MIMETYPE'] = "application/json;charset=utf-8"
又设置了charset=utf-8显示正常