summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 17:34:37 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 17:34:37 +0100
commitcb1f04cb56c6779ee09c6d2a83164c06ac2efcc9 (patch)
treefc0e31f657f0a646240a060427255135ca3dede3 /bin
parent69e40c5afad89ab966cbfff1121e631ff2e64e40 (diff)
downloadistreamdev-cb1f04cb56c6779ee09c6d2a83164c06ac2efcc9.tar.gz
istreamdev-cb1f04cb56c6779ee09c6d2a83164c06ac2efcc9.tar.bz2
Convert to utf8 all chans/cat
Diffstat (limited to 'bin')
-rwxr-xr-xbin/vdr.php13
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;
}