WideString to AnsiString


2006-11-10 12:39:07 PM
cppbuilder49
Hi there,
See the following code:
AnsiString utf8="\xE6\xB5\x85\xE8\xB0\x88";
WideString decode=UTF8Decode(utf8);
AnsiString string=decode;
AnsiString encode=UTF8Encode(string);
The finaly result is utf8 != encode.
For some reasons, I need to convert WideString to AnsiString (or char
array). Any solution? Thank you in advance.
--
Enoch Ng
www.memdb.com