fix webif xml encoding

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0d4c7b2bb2
Author: TangoCash <eric@loxat.de>
Date: 2016-04-03 (Sun, 03 Apr 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2016-04-03 23:06:46 +02:00
committed by vanhofen
parent db63c5b031
commit 657c76eec4

View File

@@ -8,6 +8,8 @@
#include <cstring>
#include <strings.h>
// UTF8 convert
#include <zapit/zapit.h>
// 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 = "<![CDATA[" + _content + "]]>";
result = convert_UTF8_To_UTF8_XML(_content.c_str());
break;
case json:
result = json_convert_string(_content);