From 2b8703fbe10a01e92ba737d233faffc3727341a4 Mon Sep 17 00:00:00 2001 From: artem Date: Thu, 24 Jan 2008 11:53:06 +0000 Subject: - [DEV-102] added support of UTF8 for GUI (Artem) git-svn-id: svn://svn.zabbix.com/trunk@5275 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/items.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontends/php/include/items.inc.php') diff --git a/frontends/php/include/items.inc.php b/frontends/php/include/items.inc.php index 260df4ff..e859f8c7 100644 --- a/frontends/php/include/items.inc.php +++ b/frontends/php/include/items.inc.php @@ -1139,8 +1139,8 @@ COpt::profiling_stop('prepare table'); if($row) { $lastvalue=/*nbsp(htmlspecialchars(*/$row["value"]/*))*/; - if(utf8_strlen($lastvalue) > 20) - $lastvalue = utf8_strtop($lastvalue,20)." ..."; + if(strlen($lastvalue) > 20) + $lastvalue = substr($lastvalue,0,20)." ..."; $lastvalue = nbsp(htmlspecialchars($lastvalue)); } else -- cgit