diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 17:34:37 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 17:34:37 +0100 |
commit | cb1f04cb56c6779ee09c6d2a83164c06ac2efcc9 (patch) | |
tree | fc0e31f657f0a646240a060427255135ca3dede3 /bin | |
parent | 69e40c5afad89ab966cbfff1121e631ff2e64e40 (diff) | |
download | istreamdev-cb1f04cb56c6779ee09c6d2a83164c06ac2efcc9.tar.gz istreamdev-cb1f04cb56c6779ee09c6d2a83164c06ac2efcc9.tar.bz2 |
Convert to utf8 all chans/cat
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/vdr.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/vdr.php b/bin/vdr.php index 0b401a8..4eb1906 100755 --- a/bin/vdr.php +++ b/bin/vdr.php @@ -58,6 +58,9 @@ function vdrgetcategories() $catarray = explode(' ', $curcat); $curcat = substr($curcat, strlen($catarray[0])+1); } + + if (!is_utf8($curcat)) + $curcat = utf8_encode($curcat); } else if ($line[0] != "") $curcatchancount++; @@ -117,6 +120,9 @@ function vdrgetchannels($category, $now) $cat = substr($cat, strlen($catarray[0])+1); } + if (!is_utf8($cat)) + $cat = utf8_encode($cat); + if ($cat == $category) $cat_found = 1; } @@ -169,6 +175,10 @@ function vdrgetchannels($category, $now) $tmpchan['now_title'] = $info; } + + if (!is_utf8($tmpchan['name'])) + $tmpchan['name'] = utf8_encode($tmpchan['name']); + $chanlist[] = $tmpchan; } } @@ -204,6 +214,9 @@ function vdrgetchanname($channum) $channame = $chanarray[0]; $channame = substr($channame, strlen($channum)+1); + if(!is_utf8($channame)) + $channame = utf8_encode($channame); + return $channame; } |