??????????
????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;
}
????????????