Hi All,
An utf-8 string to initialize is needed to initialized the "Poco::File" object. and my question is how to convert an ANSI string to UTF8 string?
std::string ansiString = "我是中国人"; // In chinese
ASCIIEncoding ascii;
UTF8Encoding utf8;
TextConverter TC(ascii,utf8);
string utf8String;
TC.convert(ansiString,utf8String);
The above converting method doesn't work. I find some code from the internet, but I want to know how can I do it with POCO?
Thank you in advance.
Regards,
Wei Yan





