Dan Brown

Fixed page listing excerpts not showing due to encoding issues

...@@ -45,7 +45,8 @@ class Page extends Entity ...@@ -45,7 +45,8 @@ class Page extends Entity
45 45
46 public function getExcerpt($length = 100) 46 public function getExcerpt($length = 100)
47 { 47 {
48 - return strlen($this->text) > $length ? substr($this->text, 0, $length-3) . '...' : $this->text; 48 + $text = strlen($this->text) > $length ? substr($this->text, 0, $length-3) . '...' : $this->text;
49 + return mb_convert_encoding($text, 'UTF-8');
49 } 50 }
50 51
51 } 52 }
......