From b40d2c550444c61c25a1c2ec2dbd472dd11d2b62 Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Thu, 19 Jul 2007 21:19:44 +0000 Subject: - added support for sending vdr's internally used character encoding in responses --- tntconfig.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tntconfig.cpp') diff --git a/tntconfig.cpp b/tntconfig.cpp index 7f412ba..1094b8a 100644 --- a/tntconfig.cpp +++ b/tntconfig.cpp @@ -5,6 +5,7 @@ #include #include #include +#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(); -- cgit v1.2.3