From 41554a1b68ba9f4ff0d0c4aa04f650bd683e9af2 Mon Sep 17 00:00:00 2001 From: jalaloedien Date: Mon, 19 Feb 2007 09:10:03 +0000 Subject: [PATCH] KTS-1537 "Document Title truncation on document details to be removed" Fixed. --- plugins/ktcore/KTColumns.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } -- libgit2 0.21.4