From 45bf5f51cc788cb8f19e1b8fcd5b8818dc7a2e00 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Feb 2019 21:02:11 +0300 Subject: GCEVENT::GCEF_UTF8 - flag for direct communication with utf8-encoded chat events (UTF16LE by default) --- utils/std_string_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/std_string_utils.cpp b/utils/std_string_utils.cpp index bac8957325..7f4ff47be6 100644 --- a/utils/std_string_utils.cpp +++ b/utils/std_string_utils.cpp @@ -21,7 +21,7 @@ along with this program. If not, see . std::string utils::url::encode(const std::string &s) { - return mir_urlEncode(s.c_str()); + return std::string(mir_urlEncode(s.c_str())); } std::string utils::url::decode(std::string data) -- cgit v1.2.3