您的位置:首页 > 产品设计 > UI/UE

LoadRunner 中文乱码问题(request 和Response)

2016-05-16 15:29 483 查看

LoadRunner 中文乱码问题解决办法

Response的中文

web_reg_save_param("Allresponse","LB=","RB=",LAST);
web_custom_request("transmit",
"Method=POST",
"URL=http://58.61.30.125:8035/Merchant/transmit.json",
"Body=",//参数拼接在这里
LAST);
lr_convert_string_encoding(lr_eval_string("{Allresponse}"),"utf-8","gb2312","enCodeAllresponse");
lr_error_message("the Allresponse is:\r\n%s",lr_eval_string("{enCodeAllresponse}"),LAST);




Request 的中文

lr_convert_string_encoding(lr_eval_string("招商银行"),"gb2312","utf-8","ResqustParam");

web_reg_save_param_ex(
"ParamName=TagRespons",
"LB={ResqustParam}",
"RB=",
"NotFound=error",
SEARCH_FILTERS,
LAST);

web_url("test.js",
"URL=http://58.61.30.125:70/Scripts/Home/infor.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://58.61.30.125:70:8080/",
"Snapshot=t2.inf",
LAST);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  web 乱码 loadrunner url