RAD Studio VCL Reference
|
Converts a string encoded in ANSI to UTF-8 with a given code page.
function AnsiToUtf8Ex(const S: AnsiString; const cp: integer): UTF8String;
UTF8String AnsiToUtf8Ex(const AnsiString S, const int cp);
AnsiToUtf8Ex converts the string specified by S to UTF-8. The code page used by the input AnsiString is specified in the cp parameter.
If the specified code page is CP_UTF8 then a direct assignment is made; otherwise a conversion is performed.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|