summaryrefslogtreecommitdiff
path: root/server/menuHTTP.h
diff options
context:
space:
mode:
authorschmirl <schmirl>2009-09-15 10:39:09 +0000
committerschmirl <schmirl>2009-09-15 10:39:09 +0000
commitf4e9cc1de964f0b249685b5fc0ebf7595233900e (patch)
tree90ff820c9b051e54614e52d4a44ecb157fe0d04f /server/menuHTTP.h
parentd5f0744f4bf093afc5ff2e962f4da27e97013fc0 (diff)
downloadvdr-plugin-streamdev-f4e9cc1de964f0b249685b5fc0ebf7595233900e.tar.gz
vdr-plugin-streamdev-f4e9cc1de964f0b249685b5fc0ebf7595233900e.tar.bz2
report charset in HTTP replies (suggested by Rolf Ahrenberg)
Diffstat (limited to 'server/menuHTTP.h')
-rw-r--r--server/menuHTTP.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/server/menuHTTP.h b/server/menuHTTP.h
index 8be613b..efa20f2 100644
--- a/server/menuHTTP.h
+++ b/server/menuHTTP.h
@@ -113,7 +113,12 @@ class cHtmlChannelList: public cChannelList
std::string ItemText();
std::string PageBottom();
public:
- virtual std::string HttpHeader() { return cChannelList::HttpHeader() + "Content-type: text/html\r\n\r\n"; }
+ virtual std::string HttpHeader() {
+ return cChannelList::HttpHeader()
+ + "Content-type: text/html; charset="
+ + I18nCharSets()[Setup.OSDLanguage]
+ + "\r\n";
+ }
virtual bool HasNext();
virtual std::string Next();
cHtmlChannelList(cChannelIterator *Iterator, eStreamType StreamType, const char *Self, const char *GroupTarget);
@@ -130,7 +135,16 @@ class cM3uChannelList: public cChannelList
cCharSetConv m_IConv;
#endif
public:
- virtual std::string HttpHeader() { return cChannelList::HttpHeader() + "Content-type: audio/x-mpegurl\r\n"; };
+ virtual std::string HttpHeader() {
+ return cChannelList::HttpHeader()
+ + "Content-type: audio/x-mpegurl; charset="
+#if defined(APIVERSNUM) && APIVERSNUM >= 10503
+ + "UTF-8"
+#else
+ + I18nCharSets()[Setup.OSDLanguage]
+#endif
+ + "\r\n";
+ }
virtual bool HasNext();
virtual std::string Next();
cM3uChannelList(cChannelIterator *Iterator, const char* Base);