From 1e079ae245cabda19b5c3c86a365fc30f4f05f4e Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 3 Apr 2016 23:06:46 +0200 Subject: [PATCH] fix webif xml encoding --- src/nhttpd/yhttpd_core/yhook.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index 57acb79b6..0fd1f59fe 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -8,6 +8,8 @@ #include #include +// UTF8 convert +#include // yhttpd #include "yhook.h" #include "helper.h" @@ -540,7 +542,7 @@ std::string CyhookHandler::outValue(std::string _content) { std::string result = ""; switch (outType) { case xml: - result = ""; + result = convert_UTF8_To_UTF8_XML(_content.c_str()); break; case json: result = json_convert_string(_content);