From ff555d0db7b0a125148f671d4ebf045786bef37c Mon Sep 17 00:00:00 2001 From: David Siegfried <ds.siegfried@gmail.com> Date: Wed, 25 Sep 2019 12:45:10 +0200 Subject: [PATCH] fix encoding problems --- classes/MensaHelper.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/MensaHelper.class.php b/classes/MensaHelper.class.php index 68cf16c..16fbc58 100755 --- a/classes/MensaHelper.class.php +++ b/classes/MensaHelper.class.php @@ -16,6 +16,7 @@ class MensaHelper } $content = array_map(function ($string) { + $string = utf8_encode($string); return str_getcsv($string, "\t"); }, file($file)); @@ -49,7 +50,7 @@ class MensaHelper $data[$date][$order][] = $item; } } - + return $data[$timestamp]; } -- GitLab