From a0ffb6b6ff8cef58ad7d03a8893ef69560fed63e Mon Sep 17 00:00:00 2001 From: Christian Grasser Date: Sun, 13 Dec 2020 19:53:00 +0100 Subject: [PATCH] Fix Plugin admin display UTF-8 issue in its description Allow UTF-8 input for plugin autor and description. Fix #9266, close #9267 --- PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp index 7542af95d..a9b033a2a 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp @@ -656,10 +656,10 @@ bool loadFromJson(PluginViewList & pl, const json& j) pi->_displayName = wmc.char2wchar(valStr.c_str(), CP_ACP); valStr = i.at("author").get(); - pi->_author = wmc.char2wchar(valStr.c_str(), CP_ACP); + pi->_author = wmc.char2wchar(valStr.c_str(), CP_UTF8); valStr = i.at("description").get(); - pi->_description = wmc.char2wchar(valStr.c_str(), CP_ACP); + pi->_description = wmc.char2wchar(valStr.c_str(), CP_UTF8); valStr = i.at("id").get(); pi->_id = wmc.char2wchar(valStr.c_str(), CP_ACP);