From c5cf87071ce3b58d94cd3253deb02452d21f4547 Mon Sep 17 00:00:00 2001 From: Benau Date: Sun, 25 Feb 2018 14:32:38 +0800 Subject: [PATCH] Use xmlEncode for proper unicode handling --- src/online/http_request.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/online/http_request.hpp b/src/online/http_request.hpp index bba850c51..f605a8a53 100644 --- a/src/online/http_request.hpp +++ b/src/online/http_request.hpp @@ -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());