Use xmlEncode for proper unicode handling

This commit is contained in:
Benau 2018-02-25 14:32:38 +08:00
parent 2fcaeabf1c
commit c5cf87071c

View File

@ -133,7 +133,7 @@ namespace Online
void addParameter(const std::string &name,
const irr::core::stringw &value)
{
std::string s = StringUtils::wideToUtf8(value);
std::string s = StringUtils::xmlEncode(value);
// Call the template to escape strings properly
addParameter(name, s.c_str());