summaryrefslogtreecommitdiff
path: root/includes/inc_vdr.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-19 15:41:05 +0100
committerTheTroll <trolldev@gmail.com>2010-02-19 15:41:05 +0100
commit97119d9248475946e69ed8485fdd4723c5f54fbe (patch)
tree7fc4bb73b92fb81a92a2dfb785cec1c3a1aa3b7c /includes/inc_vdr.php
parent803716beb793822942c448722808e6bf073c7666 (diff)
downloadistreamdev-97119d9248475946e69ed8485fdd4723c5f54fbe.tar.gz
istreamdev-97119d9248475946e69ed8485fdd4723c5f54fbe.tar.bz2
Convert channels EPG/title to UTF8 is needed
Diffstat (limited to 'includes/inc_vdr.php')
-rwxr-xr-xincludes/inc_vdr.php7
1 files changed, 7 insertions, 0 deletions
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);
}