diff --git a/Plugins/PluginWebParser/WebParser.cpp b/Plugins/PluginWebParser/WebParser.cpp index d2fe6dbc..6737d6d4 100644 --- a/Plugins/PluginWebParser/WebParser.cpp +++ b/Plugins/PluginWebParser/WebParser.cpp @@ -129,12 +129,12 @@ std::wstring ConvertToWide(LPCSTR str) if (str && *str) { int strLen = (int)strlen(str) + 1; - int bufLen = MultiByteToWideChar(CP_ACP, 0, str, strLen, NULL, 0); + int bufLen = MultiByteToWideChar(CP_UTF8, 0, str, strLen, NULL, 0); if (bufLen > 0) { WCHAR* wideSz = new WCHAR[bufLen]; wideSz[0] = 0; - MultiByteToWideChar(CP_ACP, 0, str, strLen, wideSz, bufLen); + MultiByteToWideChar(CP_UTF8, 0, str, strLen, wideSz, bufLen); szWide = wideSz; delete [] wideSz; }