summaryrefslogtreecommitdiff
path: root/tntconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tntconfig.cpp')
-rw-r--r--tntconfig.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tntconfig.cpp b/tntconfig.cpp
index 7f412ba..1094b8a 100644
--- a/tntconfig.cpp
+++ b/tntconfig.cpp
@@ -5,6 +5,7 @@
#include <stdexcept>
#include <vdr/config.h>
#include <vdr/plugin.h>
+#include "i18n.h"
#include "live.h"
#include "setup.h"
#include "tntconfig.h"
@@ -57,6 +58,7 @@ void TntConfig::WriteConfig()
file << "MapUrl /([^.]+)(\\..+)? $1@" << endl;
file << "PropertyFile " << m_propertiesPath << endl;
file << "SessionTimeout 86400" << endl;
+ file << "DefaultContentType \"text/html; charset=" << LiveI18n().CharacterEncoding() << "\"" << endl;
Setup::IpList const& ips = LiveSetup().GetServerIps();
int port = LiveSetup().GetServerPort();