ret = kNoError;
do{
//CP_ACP(ANSI字符集)
if (ansiStr.empty()) BREAK_WITH_ERROR(kInvalidParameter);...//现将本地代码页转换成utf16
int wlen = MultiByteToWideChar(CP_ACP, 0, ansiStr.c_str(), -1, NULL, 0);
if (wlen...转换utf8
int len = WideCharToMultiByte(CP_UTF8, 0, pwBuf, -1, NULL, NULL, NULL, NULL);
if (len == 0)...(const string& utf8Str, string& ansiStr)
{
int ret = kNoError;
do{
//将utf8转成utf16(wchar_t)
if...转换成ANSI
int len = WideCharToMultiByte(CP_ACP, 0, pwBuf, -1, NULL, NULL, NULL, NULL);
if (len == 0)