diff options
Diffstat (limited to 'pages/xmlresponse.ecpp')
-rw-r--r-- | pages/xmlresponse.ecpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pages/xmlresponse.ecpp b/pages/xmlresponse.ecpp index 54fe088..4bca87f 100644 --- a/pages/xmlresponse.ecpp +++ b/pages/xmlresponse.ecpp @@ -3,6 +3,10 @@ #include "i18n.h" using namespace std; +using namespace vdrlive; + +string const XMLHEADER = "<?xml version=\"1.0\" encoding=\"" + LiveI18n().CharacterEncoding() + "\"?>"; + </%pre> <# ------------------------------------------------------------------------- #> @@ -15,7 +19,7 @@ using namespace std; bool result; string error; </%args> -<?xml version="1.0" encoding="<$ LiveI18n().CharacterEncoding() $>"?> +<$$ XMLHEADER $> <service> <request name="<$ name $>"> <param name="<$ pname $>"><$ value $></param> @@ -39,7 +43,7 @@ using namespace std; string prev_chan; string next_chan; </%args> -<?xml version="1.0" encoding="ISO-8859-1"?> +<$$ XMLHEADER $> <service> <request name="ibox"> <param name="update"><$ update $></param> |