\r
return CP_UTF8;\r
}\r
+\r
CStringA CUnicodeUtils::GetUTF8(const CStringW& string)\r
{\r
+ return GetMulti(string,CP_UTF8);\r
+}\r
+\r
+CStringA CUnicodeUtils::GetMulti(const CStringW& string,int acp)\r
+{\r
char * buf;\r
CStringA retVal;\r
int len = string.GetLength();\r
return retVal;\r
buf = retVal.GetBuffer(len*4 + 1);\r
// SecureZeroMemory(buf, (string.GetLength()*4 + 1)*sizeof(char));\r
- int lengthIncTerminator = WideCharToMultiByte(CP_UTF8, 0, string, -1, buf, len*4, NULL, NULL);\r
+ int lengthIncTerminator = WideCharToMultiByte(acp, 0, string, -1, buf, len*4, NULL, NULL);\r
retVal.ReleaseBuffer(lengthIncTerminator-1);\r
return retVal;\r
}\r
\r
+\r
CStringA CUnicodeUtils::GetUTF8(const CStringA& string)\r
{\r
WCHAR * buf;\r