Fix Plugin admin display UTF-8 issue in its description

Allow UTF-8 input for plugin autor and description.

Fix #9266, close #9267
This commit is contained in:
Christian Grasser 2020-12-13 19:53:00 +01:00 committed by Don HO
parent 21e9239203
commit a0ffb6b6ff
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E
1 changed files with 2 additions and 2 deletions

View File

@ -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<std::string>();
pi->_author = wmc.char2wchar(valStr.c_str(), CP_ACP);
pi->_author = wmc.char2wchar(valStr.c_str(), CP_UTF8);
valStr = i.at("description").get<std::string>();
pi->_description = wmc.char2wchar(valStr.c_str(), CP_ACP);
pi->_description = wmc.char2wchar(valStr.c_str(), CP_UTF8);
valStr = i.at("id").get<std::string>();
pi->_id = wmc.char2wchar(valStr.c_str(), CP_ACP);