# HG changeset patch # User Matti Hamalainen # Date 1388808259 -7200 # Node ID 807c7b90386da9d446301a60a5cbef35523e21d2 # Parent 78b4eb3a9719a36345754d1735b608294afe87bc Iconv can spew some errors, so suppress them. diff -r 78b4eb3a9719 -r 807c7b90386d index.php --- a/index.php Sat Jan 04 06:04:07 2014 +0200 +++ b/index.php Sat Jan 04 06:04:19 2014 +0200 @@ -161,7 +161,7 @@ $data = @file_get_contents($uri); if ($data !== FALSE) { - $data = iconv("iso-8859-1", $pageCharset, $data); + $data = @iconv("iso-8859-15", $pageCharset, $data); if (preg_match("#(.+?)\s+(\d+)\s*(op|ECTS\s+cr)\s*#", $data, $m)) { // Add data to cache