mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
fix webif xml encoding, part 2
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
// UTF8 convert
|
||||
#include <zapit/zapit.h>
|
||||
#include <system/helpers.h>
|
||||
|
||||
// yhttpd
|
||||
#include "yhook.h"
|
||||
#include "helper.h"
|
||||
@@ -542,7 +544,7 @@ std::string CyhookHandler::outValue(std::string _content) {
|
||||
std::string result = "";
|
||||
switch (outType) {
|
||||
case xml:
|
||||
result = convert_UTF8_To_UTF8_XML(_content.c_str());
|
||||
result = convert_UTF8_To_UTF8_XML(utf8_check_is_valid(_content) ? _content.c_str() : iso_8859_1_to_utf8(_content).c_str());
|
||||
break;
|
||||
case json:
|
||||
result = json_convert_string(_content);
|
||||
|
Reference in New Issue
Block a user