From f8bd5fb2ebb6b986d97560465583f4fc712e1bae Mon Sep 17 00:00:00 2001 From: spx Date: Sun, 20 Sep 2009 08:53:28 +0000 Subject: [PATCH] A silly mistake on r217 was fixed. --- Plugins/PluginWebParser/WebParser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }