You need to sign in before continuing.
Commit d3c781836fb4e3baa0b5c9d8dbfd438f48876d50
1 parent
39af5c08
KTS-1859
"non-ASCII chars sometimes display wrong in Browse" Fixed. Committed By: Kevin Reviewed By: Conrad git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6640 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
2 deletions
plugins/ktcore/KTColumns.inc.php
| ... | ... | @@ -82,9 +82,9 @@ class AdvancedTitleColumn extends AdvancedColumn { |
| 82 | 82 | function renderDocumentLink($aDataRow) { |
| 83 | 83 | /* this chack has to be done so that any titles longer than 40 characters is not displayed incorrectly. |
| 84 | 84 | as mozilla cannot wrap text without white spaces */ |
| 85 | - if(strlen($aDataRow["document"]->getName()) > 40){ | |
| 85 | + if (mb_strlen($aDataRow["document"]->getName(), 'UTF-8') > 40) { | |
| 86 | 86 | mb_internal_encoding("UTF-8"); |
| 87 | - $outStr = htmlentities(mb_substr($aDataRow["document"]->getName(), 0, 40)."...", ENT_NOQUOTES, 'UTF-8'); | |
| 87 | + $outStr = htmlentities(mb_substr($aDataRow["document"]->getName(), 0, 40, 'UTF-8')."...", ENT_NOQUOTES, 'UTF-8'); | |
| 88 | 88 | }else{ |
| 89 | 89 | $outStr = htmlentities($aDataRow["document"]->getName(), ENT_NOQUOTES, 'UTF-8'); |
| 90 | 90 | } | ... | ... |