diff --git a/plugins/ktcore/KTColumns.inc.php b/plugins/ktcore/KTColumns.inc.php index be27c70..a86fdd7 100644 --- a/plugins/ktcore/KTColumns.inc.php +++ b/plugins/ktcore/KTColumns.inc.php @@ -55,7 +55,8 @@ class AdvancedTitleColumn extends AdvancedColumn { /* this chack has to be done so that any titles longer than 40 characters is not displayed incorrectly. as mozilla cannot wrap text without white spaces */ if(strlen($aDataRow["document"]->getName()) > 40){ - $outStr = htmlentities(substr($aDataRow["document"]->getName(), 0, 40)."...", ENT_NOQUOTES, 'UTF-8'); + mb_internal_encoding("UTF-8"); + $outStr = htmlentities(mb_substr($aDataRow["document"]->getName(), 0, 40)."...", ENT_NOQUOTES, 'UTF-8'); }else{ $outStr = htmlentities($aDataRow["document"]->getName(), ENT_NOQUOTES, 'UTF-8'); }