From: Dan Brown Date: Sun, 21 Feb 2016 13:15:46 +0000 (+0000) Subject: Fixed page listing excerpts not showing due to encoding issues X-Git-Tag: v0.7.5~1^2~5 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/6bd49bcd4b7a75bc527c2a7cd84cd345a62448d9 Fixed page listing excerpts not showing due to encoding issues --- 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'); } }