Mercurial > hg > lukkari
changeset 120:807c7b90386d
Iconv can spew some errors, so suppress them.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 04 Jan 2014 06:04:19 +0200 |
parents | 78b4eb3a9719 |
children | a6af6538777a |
files | index.php |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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("#<td class=\"smallheadercell\"><strong>(.+?)\s+(\d+)\s*(op|ECTS\s+cr)\s*</strong></td>#", $data, $m)) { // Add data to cache