zoukankan      html  css  js  c++  java
  • JMeter首金网自营项目-转义及数据库数据乱码的解决

    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中后汉字数据显示乱码:

    解决乱码的问题:

  • 相关阅读:
    PHP安装linux
    nginx 安装
    Redis安装
    linux启动http服务
    收藏的有用的网页
    laravel框架部署后有用命令
    .net 报错access to the path c: empimagefilesmsc_cntr_0.txt is denied
    oracle 触发器
    学习Auxre记录
    mysql数据库索引
  • 原文地址:https://www.cnblogs.com/jpr-ok/p/11345452.html
Copyright © 2011-2022 走看看