convert_encoding Function

Description:

This function converts a character string to a different encoding. Supported encoding formats : ascii, utf8, unicode

Format:

result = convert_encoding(input_string, from_encoding, to_encoding);

Parameter:

input_string

A charcater string expression. This exrpession can be an ascii, utf8 or unicode character string

from_encoding

the encoding of the input character string; can be ascii, utf8 or unicode

to_encoding

the encoding of the output character string; can be ascii, utf8 or unicode

Example:

string UTF8_str ;
string unicodeStr;
string asciiStr;

UTF8_str = convert_encoding (asciiStr, ascii, utf8);
unicodeStr = convert_encoding (UTF8_str , utf8, unicode);
 

See also:





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap