diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-19 15:41:05 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-19 15:41:05 +0100 |
commit | 97119d9248475946e69ed8485fdd4723c5f54fbe (patch) | |
tree | 7fc4bb73b92fb81a92a2dfb785cec1c3a1aa3b7c /includes/inc_vdr.php | |
parent | 803716beb793822942c448722808e6bf073c7666 (diff) | |
download | istreamdev-97119d9248475946e69ed8485fdd4723c5f54fbe.tar.gz istreamdev-97119d9248475946e69ed8485fdd4723c5f54fbe.tar.bz2 |
Convert channels EPG/title to UTF8 is needed
Diffstat (limited to 'includes/inc_vdr.php')
-rwxr-xr-x | includes/inc_vdr.php | 7 |
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); } |