From 97119d9248475946e69ed8485fdd4723c5f54fbe Mon Sep 17 00:00:00 2001 From: TheTroll Date: Fri, 19 Feb 2010 15:41:05 +0100 Subject: Convert channels EPG/title to UTF8 is needed --- includes/inc_vdr.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'includes/inc_vdr.php') diff --git a/includes/inc_vdr.php b/includes/inc_vdr.php index 07880e7..c96217c 100755 --- a/includes/inc_vdr.php +++ b/includes/inc_vdr.php @@ -83,6 +83,13 @@ function vdrgetinfostream($stream = "NULL", $ischan = 1) $epgdesc=substr($allepg[$i], 2); } } + + // Convert if needed + if (!is_utf8($epgtitle)) + $epgtitle = utf8_encode($epgtitle); + if (!is_utf8($epgdesc)) + $epgdesc = utf8_encode($epgdesc); + return array($epgtitle, $epgdesc, $channame); } -- cgit v1.2.3