LoadRunner???????-????????????
???????????? ???????[ 2014/12/3 14:43:35 ] ????????Loadrunner ????? ????
??????????
????lr_convert_string_encoding????
?????????????????????
????????
????int lr_convert_string_encoding(const char *sourceString?? const char *fromEncoding?? const char *toEncoding?? const char *paramName);
???????????0(??г??)??-1(??????)
?????????????
????sourceString?????????????
????fromEncoding???????????
????toEncoding???????????parmaName?е????????????????????????
????paramName????????????????????
?????????
????1.lr_convert_string_encoding???system locale??Unicode??UTF-8?????????????????????paramName?б?????????????y??????????????????????NULL
????2.?????????е?????????VuGen??????а????????????????????????????????????????磺
????rc = lr_convert_string_encoding("A"?? NULL?? LR_ENC_UTF8?? "stringInUnicode");
????????????(??stringInUnicode?????)??????Ax00?? ??????x41x00?????A??????????.
????3.fromEncoding and toEncoding??????
????loadrunner <wbr>???????-????????????
?????????
Action()
{
int rc = 0;
char *converted_buffer_unicode = NULL;
rc = lr_convert_string_encoding("hello"?? NULL?? LR_ENC_UNICODE?? "stringInUnicode");
if(rc < 0)
{
lr_output_message("convert_string_encoding failed ");
// error
}
return 0;
}
????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11