JMeter首金网自营项目-转义及数据库数据乱码的解决
2019-08-13 13:55 改改~_~ 阅读(239) 评论(0) 编辑 收藏 举报
param的string参数:
需要对”进行转义,加/
{ "prdCreditInfo": { "revision": 0, "maxCredit": 5000.0, "minCredit": 1000.0, "maxTimes": 10, "maxCurrentTimes": 10, "isGrantCreditMutex": "1", "isSpendCreditMutex": "1", "quotaTerm": 10, "remark": "测试数据", "productName": "测试产品006", "prdDesc": "测试产品002" }, "partyRoleList": [{ "roleName": "303", "roleCode": "担保机构", "roleType": "303" }, { "roleName": "302", "roleCode": "小贷机构 ", "roleType": "302" }], "payTypeList": [{ "payType": "1", "payTypeName": "等额本息", "remark": "测试数据" }, { "payType": "9", "payTypeName": "等额还款", "remark": "测试数据" }], "assetCreditRelationList": [{ "assetName": "assetName01", "assetCode": "assetCode01", "remark": "测试数据" }, { "assetName": "assetName02", "assetCode": "assetCode02", "remark": "测试数据" }] }
转义提交后JMeter提交到mysql中后汉字数据显示乱码:
解决乱码的问题: