From 6bd49bcd4b7a75bc527c2a7cd84cd345a62448d9 Mon Sep 17 00:00:00 2001 From: Dan Brown Date: Sun, 21 Feb 2016 13:15:46 +0000 Subject: [PATCH] Fixed page listing excerpts not showing due to encoding issues --- app/Page.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Page.php b/app/Page.php index bd5f3bafe..53724ec20 100644 --- a/app/Page.php +++ b/app/Page.php @@ -45,7 +45,8 @@ class Page extends Entity public function getExcerpt($length = 100) { - return strlen($this->text) > $length ? substr($this->text, 0, $length-3) . '...' : $this->text; + $text = strlen($this->text) > $length ? substr($this->text, 0, $length-3) . '...' : $this->text; + return mb_convert_encoding($text, 'UTF-8'); } }